# ActionMailer doesn't send any mail

**URL:** <https://www.ruby-forum.com/t/actionmailer-doesnt-send-any-mail/99372>\
**Category:** Rails\
**Created:** [July 22, 2006, 1:16am UTC](https://www.ruby-forum.com/t/actionmailer-doesnt-send-any-mail/99372 "2006-07-22T01:16:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f17d59/32.png) [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Post date:** [July 22, 2006, 1:16am UTC](https://www.ruby-forum.com/t/actionmailer-doesnt-send-any-mail/99372/1 "2006-07-22T01:16:08Z")

</div>

I’ve configured actionmailer following the documentation, adding to  
environment.rb everything for using my mail account on yahoo using  
deliver\_\* methods to send a mail.  
I can see the mail in development.log and everything seems fine, but  
no mails so far.  
Is there a place where can I see what the server answered, or  
something to look at to solve the problem ? I have no clue, I’ve  
trying for hours …

ngw

---

<div class="post-metadata">

**Author:** ![Nicholas\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f17d59/32.png) [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Post date:** [July 22, 2006, 1:22am UTC](https://www.ruby-forum.com/t/actionmailer-doesnt-send-any-mail/99372/2 "2006-07-22T01:22:21Z")

</div>

Il giorno 22/lug/06, alle ore 01:14, Nicholas W. ha scritto:

> I’ve configured actionmailer following the documentation, adding to  
> environment.rb everything for using my mail account on yahoo using  
> deliver\_\* methods to send a mail.  
> I can see the mail in development.log and everything seems fine,  
> but no mails so far.  
> Is there a place where can I see what the server answered, or  
> something to look at to solve the problem ? I have no clue, I’ve  
> trying for hours …

My configuration in environment.rb is:

ActionMailer::Base.delivery\_method = :smtp  
ActionMailer::Base.server\_settings = {  
:address =\> “mail.smtp.yahoo.it”,  
:port =\> “25”,  
:domain =\> “[smtp.nofeed.org](http://smtp.nofeed.org)”,  
:user\_name =\> “removed\_email\_address@domain.invalid”,  
:password =\> “mypasswd”,  
:authentication =\> :plain  
}

Logs:

Sent mail:  
From: removed\_email\_address@domain.invalid  
To: removed\_email\_address@domain.invalid  
Subject: Verification Email  
Content-Type: text/plain; charset=utf-8

Thanks for registering.  
Activate your account visiting this url:

[http://www.nofeed.org/user/validation/](http://www.nofeed.org/user/validation/)  
d7e965931bfb9aa4f093ff6468735638752b59a8

nofeed staff  
Redirected to [http://localhost:3001/user/verification\_sent](http://localhost:3001/user/verification_sent)  
Completed in 30.15614 (0 reqs/sec) | DB: 0.02258 (0%) | 302 Found  
[[http://localhost/user/new](http://localhost/user/new)]

I’m going crazy … 😛

ngw

---

<div class="post-metadata">

**Author:** ![Nicholas\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f17d59/32.png) [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Post date:** [July 22, 2006, 1:35am UTC](https://www.ruby-forum.com/t/actionmailer-doesnt-send-any-mail/99372/3 "2006-07-22T01:35:03Z")

</div>

Add this line below your existing lines:

ActionMailer::Base.perform\_deliveries = true

Michael

mmodica at cox dot net

---

<div class="post-metadata">

**Author:** ![Nicholas\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f17d59/32.png) [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Post date:** [July 22, 2006, 2:02am UTC](https://www.ruby-forum.com/t/actionmailer-doesnt-send-any-mail/99372/4 "2006-07-22T02:02:00Z")

</div>

Nicholas W. wrote:

> I’ve configured actionmailer following the documentation, adding to  
> environment.rb everything for using my mail account on yahoo using  
> deliver\_\* methods to send a mail.  
> I can see the mail in development.log and everything seems fine, but  
> no mails so far.  
> Is there a place where can I see what the server answered, or  
> something to look at to solve the problem ? I have no clue, I’ve  
> trying for hours …
> 
> ngw

What OS are you on? I had a heck of a time in OSX. There were a few  
things I found through trial and error:

1. If I made a change to my environment.rb file I had to do a full  
restart of my web server. I thought I read somewhere that if you were  
in development mode this wasn’t necessary, but it was in my case

2. I was using my development machine (localhost) as the mail server. I  
had to start the smtp server on my development machine in the Terminal  
with:

sudo service smtp start

1. It didn’t work at all in OS 10.3, when I moved to OS 10.4 everything  
worked (assuming I did the above 2 things first)

In any case if you are in OSX you can find a mail server log at

/var/log/mail.log

Not sure where that info is kept in Windows.
