# Mailer behaviour failing but not getting any feedback

**URL:** <https://www.ruby-forum.com/t/mailer-behaviour-failing-but-not-getting-any-feedback/71895>\
**Category:** Radiant CMS\
**Created:** [October 12, 2006, 5:34am UTC](https://www.ruby-forum.com/t/mailer-behaviour-failing-but-not-getting-any-feedback/71895 "2006-10-12T05:34:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![straylight](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@straylight](https://www.ruby-forum.com/u/straylight)\
**Post date:** [October 12, 2006, 5:34am UTC](https://www.ruby-forum.com/t/mailer-behaviour-failing-but-not-getting-any-feedback/71895/1 "2006-10-12T05:34:37Z")

</div>

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: removed\_email\_address@domain.invalid  
redirect\_to: /contact/thank-you  
recipients:  
- removed\_email\_address@domain.invalid

_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](http://mail.sonarhq.com)”,  
:port =\> 25,  
:domain =\> “[sonarhq.com](http://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/](http://dev.sonarhq.com/contact/)]

---

<div class="post-metadata">

**Author:** ![straylight](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@straylight](https://www.ruby-forum.com/u/straylight)\
**Post date:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/mailer-behaviour-failing-but-not-getting-any-feedback/71895/2 "2006-10-18T10:39:33Z")

</div>

you can try running another server in development mode. The dev mode  
log is  
alot better for debugging mail problems. you can also use this site to  
try  
out code changes as well, or for holding off on big site changes…
