# Send mail with ActionMailer on localhost for leopard

**URL:** <https://www.ruby-forum.com/t/send-mail-with-actionmailer-on-localhost-for-leopard/155841>\
**Category:** Rails\
**Created:** [December 17, 2008, 11:47am UTC](https://www.ruby-forum.com/t/send-mail-with-actionmailer-on-localhost-for-leopard/155841 "2008-12-17T11:47:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlstar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@jlstar](https://www.ruby-forum.com/u/jlstar)\
**Post date:** [December 17, 2008, 11:47am UTC](https://www.ruby-forum.com/t/send-mail-with-actionmailer-on-localhost-for-leopard/155841/1 "2008-12-17T11:47:23Z")

</div>

For @free.fr email address

Don’t use any tls plugin !!!

add in config/environnements/development.rb

ActionMailer::Base.perform\_deliveries = true  
ActionMailer::Base.raise\_delivery\_errors = false  
ActionMailer::Base.default\_charset = “utf-8”

ActionMailer::Base.delivery\_method = :smtp  
ActionMailer::Base.smtp\_settings = {  
:port =\> 25,  
:domain =\> ‘[free.fr](http://free.fr)’,  
:address =\> ‘[smtp.free.fr](http://smtp.free.fr)’,  
:pop3\_auth =\> {  
:server =\> ‘[pop.free.fr](http://pop.free.fr)’,  
:user\_name =\> ‘dhh’,  
:password =\> ‘secret’,  
:expires =\> 1.hour # expiration time for the credentials  
}  
}

---

<div class="post-metadata">

**Author:** ![jlstar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@jlstar](https://www.ruby-forum.com/u/jlstar)\
**Post date:** [December 17, 2008, 11:52am UTC](https://www.ruby-forum.com/t/send-mail-with-actionmailer-on-localhost-for-leopard/155841/2 "2008-12-17T11:52:31Z")

</div>

If you used plugin or gem tls or smtp\_tls your have this error message :

502 Error: command not implemented
