Hi all,
I have the mailer behavior installed, but it is not working. Anyone have
any idea what I am doing wrong?
I have the following parts in my page:
Body
<r:mailer:form name=“contact”>
<r:mailer:hidden name=“subject” value=“Email from my Radiant site!”
/>
<r:mailer:text name=“nameuu” />
<r:mailer:text name=“emailuu” />
<r:mailer:textarea name=“comments”></r:mailer:textarea>
<r:mailer:submit value=“Send” />
<r:mailer:reset />
</r:mailer:form>
config
mailers:
contact:
subject: From SonarHQ
from: [email protected]
redirect_to: /contact/thank-you
recipients:
- [email protected]
email
Name: <r:mailer:get name=“nameuu” />
Email: <r:mailer:get name=“email” />
Comments: <r:mailer:get name=“comments” />
I have added the following to environment.rb:
ActionMailer::Base.server_settings = {
:address => “mail.sonarhq.com”,
:port => 25,
:domain => “sonarhq.com”
}
and have stopped actionmailer from being excluded in this file
In my logs I get the following when I submit:
Processing SiteController#show_page (for x.x.x.x at 2006-10-12 15:20:51)
[POST]
Parameters: {“mailer”=>{“name”=>“test”, “comments”=>“test”,
“email”=>“test”}, “action”=>“show_page”, “url”=>[“contact”],
“mailer_name”=>“test_form”, “controller”=>“site”}
Completed in 0.03576 (27 reqs/sec) | DB: 0.00648 (18%) | 200 OK
[http://dev.sonarhq.com/contact/]