# ActionMailer not send and not generate errors

**URL:** <https://www.ruby-forum.com/t/actionmailer-not-send-and-not-generate-errors/125257>\
**Category:** Rails\
**Created:** [January 7, 2008, 3:38pm UTC](https://www.ruby-forum.com/t/actionmailer-not-send-and-not-generate-errors/125257 "2008-01-07T15:38:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stratboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/838e76/32.png) [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Post date:** [January 7, 2008, 3:38pm UTC](https://www.ruby-forum.com/t/actionmailer-not-send-and-not-generate-errors/125257/1 "2008-01-07T15:38:25Z")

</div>

I have insert in envirmonment.rb

ActionMailer::Base.delivery\_method= :sendmail

and i have created a mailer model:

class MyMailer \< ActionMailer::Base  
def mail\_authentication(user)  
from “removed\_email\_address@domain.invalid”  
recipients user.mail  
subject “| NERTO | Conferma Registrazione”  
body :user =\> user  
end  
end

with his template

For sending a letter i have insert in a controller this:  
MyMailer.deliver\_mail\_authentication(@user)

but the mail don’t is sent.  
In the console there are no errors.

Why?  
Where is the problem?

i try also with:  
ActionMailer::Base.smtp\_settings = {  
:address =\> “smtp.nerto.it”,  
:port =\> 25,  
:user\_name =\> “removed\_email\_address@domain.invalid”,  
:domain =\> “www.nerto.it”,  
:password =\> “\*\*\*\*\*”,  
:authentication =\> :plain  
}

but it the same thing.  
Thanks
