# Action\_mailer - No Errors, but no emails sent

**URL:** <https://www.ruby-forum.com/t/action-mailer-no-errors-but-no-emails-sent/187634>\
**Category:** Rails\
**Created:** [April 27, 2010, 3:07am UTC](https://www.ruby-forum.com/t/action-mailer-no-errors-but-no-emails-sent/187634 "2010-04-27T03:07:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@brent](https://www.ruby-forum.com/u/brent)\
**Post date:** [April 27, 2010, 3:07am UTC](https://www.ruby-forum.com/t/action-mailer-no-errors-but-no-emails-sent/187634/1 "2010-04-27T03:07:27Z")

</div>

Hello,

I am trying to mail messages. I’m using virtually the same code I did  
locally, and I got it to work (using Gmail). But not that I test it  
from my hosting it won’t work. Everything is setup properly. I can  
even login with Telnet and send mail from the same username.

Rails won’t even give me an error. It acts as if it sends. But I get  
no mail. And it’s not in spam.

I’ve searched through everywhere and can’t find an answer =/  
Here’s my code:

config.action\_mailer.delivery\_method = :smtp  
config.action\_mailer.smtp\_settings = {  
:tls =\> true,  
:address =\> “mail.**.com",  
:port =\> 587,  
:domain =\> "**.com”,  
:authentication =\> :login,  
:user\_name =\> “hello@**.com",  
:password =\> "**”,  
}

---

<div class="post-metadata">

**Author:** ![brent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@brent](https://www.ruby-forum.com/u/brent)\
**Post date:** [April 27, 2010, 3:14am UTC](https://www.ruby-forum.com/t/action-mailer-no-errors-but-no-emails-sent/187634/2 "2010-04-27T03:14:29Z")

</div>

In your ROOT/config/environements/development.rb or other approriate .rb  
file put this line :

config.action\_mailer.raise\_delivery\_errors = true

you should see errors in your log files post this is done, that should  
give  
you a better idea as to what’s going wrong. It could be as simple as  
wrong  
username / password or something a little more complex. Try it.

On Tue, Apr 27, 2010 at 06:36, Brent [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve searched through everywhere and can’t find an answer =/  
> :user\_name =\> “hello@\*\*\*\*.com”,  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–

Thanks & Regards,  
Dhruva S…

---

<div class="post-metadata">

**Author:** ![brent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@brent](https://www.ruby-forum.com/u/brent)\
**Post date:** [April 27, 2010, 3:49am UTC](https://www.ruby-forum.com/t/action-mailer-no-errors-but-no-emails-sent/187634/3 "2010-04-27T03:49:01Z")

</div>

I have that in there, but still no errors. This is my log:

Processing PagesController#say\_hello (for \_\_\_\_\_\_\_ at 2010-04-26  
18:00:48) [POST]  
Parameters: {“action”=\>“say\_hello”, “authenticity\_token”=\>“6Shi6Wa/  
6dYjA1UJNPx74SVLofVmD5LEhTvZ9rJoeNY=”,  
“contact”=\>{“name”=\>“weeeeeeeeeeeee”, “content”=\>“rr”,  
“email”=\>"_ **@** _**.com"}, “addsuggestion”=\>“Say hello”,  
“controller”=\>“pages”}  
Sent mail to removed\_email\_address@domain.invalid  
Sent mail to \_\_\_\_@**\_\_\_.com  
Redirected to [http://testapp](http://testapp).**.com/contact/#thank-you  
Completed in 190ms (DB: 2) | 302 Found [[http://testapp](http://testapp).**.com/pages/  
say\_hello]
