# Mailer Behavior on ASmallOrange

**URL:** <https://www.ruby-forum.com/t/mailer-behavior-on-asmallorange/81235>\
**Category:** Radiant CMS\
**Created:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/mailer-behavior-on-asmallorange/81235 "2007-01-06T19:30:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/mailer-behavior-on-asmallorange/81235/1 "2007-01-06T19:30:31Z")

</div>

Anyone got the Mailer Behavior to work on [ASmallOrange.com](http://ASmallOrange.com) hosting?

I have the behavior installed and everything set up to what I think is  
correct, but the form just reloads it’s self (not thank-you) and I  
never get an email. There doesn’t seem to be any errors, all I can  
find in any error logs is in production.log I get:

“Processing SiteController#show\_page (for \*\*\*\*\*\*\*\* at 2007-01-04  
16:56:19) [POST]  
Parameters: {“mailer”=\>{“message”=\>“test test”, “name”=\>“me”,  
“subject”=\>”"}, “action”=\>“show\_page”, “url”=\>[“contact”],  
“mailer\_name”=\>“contact”, “controller”=\>“site”}  
Completed in 1.89603 (0 reqs/sec) | DB: 0.00087 (0%) | 200 OK  
[[http://www.mysite.com/content/contact](http://www.mysite.com/content/contact)]

My config part is this:

mailers:  
contact:  
subject: From Contact Form  
from: removed\_email\_address@domain.invalid  
redirect\_to: /contact/thank-you/  
recipients:  
- removed\_email\_address@domain.invalid

Any suggestions?  
Thanks,  
BJ Clark

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [January 19, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/mailer-behavior-on-asmallorange/81235/2 "2007-01-19T16:30:20Z")

</div>

BJ,

Make sure you have set the ActionMailer settings in  
config/environment.rb or  
config/environments/production.rb . You might need to set an SMTP  
server to  
use, rather than sendmail.

Sean

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [January 19, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/mailer-behavior-on-asmallorange/81235/3 "2007-01-19T16:30:49Z")

</div>

Sean,  
Here’s what I have in config/environment.rb:  
ActionMailer::Base.server\_settings = {  
:address =\> “[domain.com](http://domain.com)”,  
:port =\> 25,  
:domain =\> ‘[domain.com](http://domain.com)’,  
:user\_name =\> “removed\_email\_address@domain.invalid”,  
:password =\> ‘password’,  
:authentication =\> :login  
}  
(obviously this is obfuscated)  
I have two questions here. What is :address and :username supposed to  
be? Any ideas?  
Thanks,  
BJ

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [September 25, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/mailer-behavior-on-asmallorange/81235/4 "2007-09-25T22:31:05Z")

</div>

ah yes, authentication has caught me out a few times as well…

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [September 25, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/mailer-behavior-on-asmallorange/81235/5 "2007-09-25T22:38:02Z")

</div>

Hello All,  
I’m still un-able to get my contact page to work.  
I am getting no errors in my production log. All that I can find that  
related to the mailer is this:

Processing SiteController#show\_page (for 165.127.53.190 at 2007-01-10  
16:58:20) [POST]  
Parameters: {“mailer”=\>{“message”=\>“Test”, “name”=\>“BJ”,  
“subject”=\>“”, “email”=\>“removed\_email\_address@domain.invalid”}, “action”=\>“show\_page”,  
“url”=\>[“contact”], “mailer\_name”=\>“contact”, “controller”=\>“site”}  
Completed in 0.01511 (66 reqs/sec) | DB: 0.00077 (5%) | 200 OK  
[[http://www.scidept.com/content/contact](http://www.scidept.com/content/contact)]

The problem is that I’m not getting any email and it’s not forwarding  
to my /contact/thank-you page, it just goes back to a blank /contact/  
page.

Anyone have any ideas?  
Thanks,  
BJ Clark

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [September 25, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/mailer-behavior-on-asmallorange/81235/6 "2007-09-25T22:48:35Z")

</div>

Michael,  
It’s not working under dev, but I finally got an error (ya!).  
It’s not authenticating properly, so I’ve contact my hosting provider  
to see what they have to say about it.  
If I figure anything out, I’ll post it here.  
BJ

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [September 25, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/mailer-behavior-on-asmallorange/81235/7 "2007-09-25T22:46:28Z")

</div>

Hi BJ,

Just out of interest, does it work under development mode on the same  
server?  
I was having a similar issue, where it works fine in dev mode, but not  
in production mode. I havent managed to get t resolved yet…

[http://www.ruby-forum.com/topic/91276#180017](http://www.ruby-forum.com/topic/91276#180017)
