# Mail sending in production mode

**URL:** <https://www.ruby-forum.com/t/mail-sending-in-production-mode/147375>\
**Category:** Rails\
**Created:** [September 1, 2008, 8:01am UTC](https://www.ruby-forum.com/t/mail-sending-in-production-mode/147375 "2008-09-01T08:01:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [September 1, 2008, 8:01am UTC](https://www.ruby-forum.com/t/mail-sending-in-production-mode/147375/1 "2008-09-01T08:01:24Z")

</div>

Hi  
As of now I had been running my server in development mode. And for  
mail sending in confif/environments/development.rb I have configured the  
mailsending method,port etc and they are working properly .Now I would  
like to run server on production mode. My current settings in the  
development.rb is as follows

# Don’t care if the mailer can’t send

config.action\_mailer.raise\_delivery\_errors = true  
#set delivery method to :smtp, :sendmail or :test  
config.action\_mailer.delivery\_method = :smtp  
#Following options are needed if the dlivery method is :smtp  
config.action\_mailer.smtp\_settings = {  
:address =\> “[mail.domain.com](http://mail.domain.com)”,  
:port =\> 25,  
:domain =\> ‘domainname’,  
}  
So my question is when I run server on production environment can  
i copy the above to config/environments/production.rb Is that only  
needed to make the mail sending work on production mode Any other  
configuration do i need?Please help

Thanks in advance  
Sijo

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [September 1, 2008, 10:12am UTC](https://www.ruby-forum.com/t/mail-sending-in-production-mode/147375/2 "2008-09-01T10:12:48Z")

</div>

On Sep 1, 7:01 am, Sijo Kg [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> config.action\_mailer.delivery\_method = :smtp

It depends. If those details are correct and your mail server doesn’t  
require authentication then that will be enough.

Fred
