# Action Mailer ...mail done but not received.. (or sent ?)

**URL:** <https://www.ruby-forum.com/t/action-mailer-mail-done-but-not-received-or-sent/64532>\
**Category:** Rails\
**Created:** [August 9, 2006, 8:01pm UTC](https://www.ruby-forum.com/t/action-mailer-mail-done-but-not-received-or-sent/64532 "2006-08-09T20:01:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [August 9, 2006, 8:01pm UTC](https://www.ruby-forum.com/t/action-mailer-mail-done-but-not-received-or-sent/64532/1 "2006-08-09T20:01:29Z")

</div>

I am using Action Mailer as stated in RoR book… the mail seems to be  
correctly setup…  
and I get the following log…

Sent mail:  
Date: Wed, 9 Aug 2006 19:54:04 +0200  
From: removed\_email\_address@domain.invalid  
To: removed\_email\_address@domain.invalid  
Subject: Your password is …  
Mime-Version: 1.0  
Content-Type: text/html; charset=utf-8

* * *

Your username is barbare. Your new password is tDRvfzNvDF. Please login  
and change it to something more memorable.

* * *

Redirected to [http://localhost:3000/user/login](http://localhost:3000/user/login)  
Completed in 2.88956 (0 reqs/sec) | DB: 0.00422 (0%) | 302 Found  
[[http://localhost/user/forgot\_password](http://localhost/user/forgot_password)]

no error in sending mail  
but checking my mail at [mac.com](http://mac.com) … no message at all…

How can I check that the mail has been correctly sent…

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [August 9, 2006, 9:20pm UTC](https://www.ruby-forum.com/t/action-mailer-mail-done-but-not-received-or-sent/64532/2 "2006-08-09T21:20:03Z")

</div>

Kad K. wrote:

> I am using Action Mailer as stated in RoR book… the mail seems to be  
> correctly setup…  
> and I get the following log…
> 
> Sent mail:  
> Date: Wed, 9 Aug 2006 19:54:04 +0200  
> From: removed\_email\_address@domain.invalid  
> To: removed\_email\_address@domain.invalid  
> Subject: Your password is …  
> Mime-Version: 1.0  
> Content-Type: text/html; charset=utf-8
> 
> * * *
> 
> Your username is barbare. Your new password is tDRvfzNvDF. Please login  
> and change it to something more memorable.
> 
> * * *
> 
> Redirected to [http://localhost:3000/user/login](http://localhost:3000/user/login)  
> Completed in 2.88956 (0 reqs/sec) | DB: 0.00422 (0%) | 302 Found  
> [[http://localhost/user/forgot\_password](http://localhost/user/forgot_password)]
> 
> no error in sending mail  
> but checking my mail at [mac.com](http://mac.com) … no message at all…
> 
> How can I check that the mail has been correctly sent…

You may want to check your environment file to make sure that mail  
delivery is set to true!

Regards,

Michael

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [August 9, 2006, 9:30pm UTC](https://www.ruby-forum.com/t/action-mailer-mail-done-but-not-received-or-sent/64532/3 "2006-08-09T21:30:18Z")

</div>

Michael M. wrote:

> Kad K. wrote:
> 
> > I am using Action Mailer as stated in RoR book… the mail seems to be  
> > correctly setup…  
> > and I get the following log…
> > 
> > Sent mail:  
> > Date: Wed, 9 Aug 2006 19:54:04 +0200  
> > From: removed\_email\_address@domain.invalid  
> > To: removed\_email\_address@domain.invalid  
> > Subject: Your password is …  
> > Mime-Version: 1.0  
> > Content-Type: text/html; charset=utf-8
> > 
> > * * *
> > 
> > Your username is barbare. Your new password is tDRvfzNvDF. Please login  
> > and change it to something more memorable.
> > 
> > * * *
> > 
> > Redirected to [http://localhost:3000/user/login](http://localhost:3000/user/login)  
> > Completed in 2.88956 (0 reqs/sec) | DB: 0.00422 (0%) | 302 Found  
> > [[http://localhost/user/forgot\_password](http://localhost/user/forgot_password)]
> > 
> > no error in sending mail  
> > but checking my mail at [mac.com](http://mac.com) … no message at all…
> > 
> > How can I check that the mail has been correctly sent…
> 
> You may want to check your environment file to make sure that mail  
> delivery is set to true!
> 
> Regards,
> 
> Michael

here it is , is there anything wrong ?

ActionMailer::Base.delivery\_method = :smtp  
ActionMailer::Base.server\_settings = {  
:address =\> “[mail.alemat.com](http://mail.alemat.com)”,  
:port =\> 25,  
:domain =\> “[alemat.com](http://alemat.com)”,  
:user\_name =\> “alemat”,  
:password =\> “bingo”,  
:authentication =\> :login  
}

ActionMailer::Base.perform\_deliveries = true  
ActionMailer::Base.raise\_delivery\_errors = true  
ActionMailer::Base.default\_charset = “utf-8”  
ActionMailer::Base.default\_content\_type = “text/html” # default:  
“text/plain”  
ActionMailer::Base.default\_mime\_version = “1.0”  
ActionMailer::Base.default\_implicit\_parts\_order = [ “text/html”,  
“text/plain”]

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [August 9, 2006, 10:06pm UTC](https://www.ruby-forum.com/t/action-mailer-mail-done-but-not-received-or-sent/64532/4 "2006-08-09T22:06:22Z")

</div>

Michael M. wrote:

> That looks okay…Hhhmmm…
> 
> Michael

got it…  
I tried to use another smtp server without authentification… it’ fine  
, email sent and received  
it’s something related with HELO… and identification  
my from address seem to be rejected when authentified…

the ‘from’ address should be from the same domain mentionned in the  
config ?

thanks

!!

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [August 9, 2006, 9:55pm UTC](https://www.ruby-forum.com/t/action-mailer-mail-done-but-not-received-or-sent/64532/5 "2006-08-09T21:55:08Z")

</div>

That looks okay…Hhhmmm…

Michael

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [August 9, 2006, 10:31pm UTC](https://www.ruby-forum.com/t/action-mailer-mail-done-but-not-received-or-sent/64532/6 "2006-08-09T22:31:48Z")

</div>

Kad K. wrote:

> the ‘from’ address should be from the same domain mentionned in the  
> config ?

depends on server configuration 😃

[]s  
Meyer
