Displaying 1 result from an estimated 1 matches for "create_contact_us".
2005 Mar 18
1
newbie question on ActionMailer
...I''m trying to get actionmailer to send a simple test message.
My development.rb file has the following config:
ActionMailer::Base.server_settings = {
:address => "192.168.1.2",
:port => 25,
}
The code in my controller is:
def sendmail
mail = Notifications::create_contact_us()
Notifications::deliver(mail)
redirect_to :controller => "contact", :action => "index"
end
My "Notifications" contact_us method is:
def contact_us()
@subject = ''Notifications#contact_us''
@body = {}
@recipients...