# Action\_mailer in windows -can't get to work

**URL:** <https://www.ruby-forum.com/t/action-mailer-in-windows-cant-get-to-work/155884>\
**Category:** Rails\
**Created:** [December 17, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/action-mailer-in-windows-cant-get-to-work/155884 "2008-12-17T22:11:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomasalbert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@thomasalbert](https://www.ruby-forum.com/u/thomasalbert)\
**Post date:** [December 17, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/action-mailer-in-windows-cant-get-to-work/155884/1 "2008-12-17T22:11:15Z")

</div>

Newbie problem - I am on windows and can’t get action mailer to send  
an email. There are no error messages, the command line says "Sent  
mail to " and then lists the contents. I have done lots of seacrhing  
on the web but I am missing something. Does Rails talk directly to  
mail.aapt.net.au (in my case) or is there a mail client or something  
that should be on windows? There is no activity on my modem when I try  
to send the email. Tom.

---

<div class="post-metadata">

**Author:** ![thomasalbert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@thomasalbert](https://www.ruby-forum.com/u/thomasalbert)\
**Post date:** [December 18, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/action-mailer-in-windows-cant-get-to-work/155884/2 "2008-12-18T12:39:18Z")

</div>

thomasalbert wrote:

> Newbie problem - I am on windows and can’t get action mailer to send  
> an email. There are no error messages, the command line says "Sent  
> mail to " and then lists the contents. I have done lots of seacrhing  
> on the web but I am missing something. Does Rails talk directly to  
> mail.aapt.net.au (in my case) or is there a mail client or something  
> that should be on windows? There is no activity on my modem when I try  
> to send the email. Tom.

Im having the same problem.  
I have installed action\_mailer\_tls plugin but still the same.  
Hard to solve for me because I have no idea what exactly is going on.  
Any help very welcome.

Im using Rails 2.1.2, this is in my environment.rb:

ActionMailer::Base.delivery\_method = :smtp  
ActionMailer::Base.smtp\_settings = {  
:address =\> “[smtp.gmail.com](http://smtp.gmail.com)”,  
:port =\> 587,  
:domain =\> “[gmail.com](http://gmail.com)”,  
:user\_name =\> “blablabla”,  
:password =\> “hackme”,  
:authentication =\> :plain  
}

---

<div class="post-metadata">

**Author:** ![thomasalbert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@thomasalbert](https://www.ruby-forum.com/u/thomasalbert)\
**Post date:** [December 18, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/action-mailer-in-windows-cant-get-to-work/155884/3 "2008-12-18T16:14:37Z")

</div>

David Kleman wrote:

> ## I have installed action\_mailer\_tls plugin but still the same. :user\_name =\> “blablabla”, :password =\> “hackme”, :authentication =\> :plain }

It’s difficult to debug this sort of problem (it would be nice if  
there were a mechanism to trap and view errors returned by mail  
servers talking to ActionMailer in a rails app).

A couple of things to look at:

Try using the full email address for the user\_name:

:user\_name =\> 'removed\_email\_address@domain.invalid"

Also, look carefully at your development.log file for error messages  
returned by the outgoing mail server in the interaction between the  
mail server and your program. You can also try to run in production  
mode (uncomment the line ENV[‘RAILS\_ENV’] ||= ‘production’ in config/  
environment.rb) - sometimes you can catch some error messages in  
production mode that don’t appear when running in development mode.
