# SMTP Configuration in Rails 2.3.4

**URL:** <https://www.ruby-forum.com/t/smtp-configuration-in-rails-2-3-4/189455>\
**Category:** Rails\
**Created:** [June 1, 2010, 11:40am UTC](https://www.ruby-forum.com/t/smtp-configuration-in-rails-2-3-4/189455 "2010-06-01T11:40:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasan\_cec](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@vasan\_cec](https://www.ruby-forum.com/u/vasan_cec)\
**Post date:** [June 1, 2010, 11:40am UTC](https://www.ruby-forum.com/t/smtp-configuration-in-rails-2-3-4/189455/1 "2010-06-01T11:40:41Z")

</div>

Hello Everyone,

I have a problem with SMTP configuration for my application. Previously  
I was using Rails version 1.1.6, and the SMTP settings would be  
configured in environment.rb as follows:

ActionMailer::Base.delivery\_method = :smtp  
ActionMailer::Base.server\_settings = {  
:address =\> “localhost”,  
:port =\> 25,  
:domain =\> “HELO”  
}

Now, my new application is using Rails version 2.3.4 and I am not able  
to find the SMTP settings anywhere.

In previous 1.1.6 Rails version, I used to comment the above lines or  
change the address to our local SMTP server. So that all mails  
(exceptions, notifications) would be sent to local SMTP server.

Can anyone tell me how to do these things in Rails version 2.3.4 ?  
Basically what I am looking for is a switch of some kind, to stop  
sending mails from my server.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![vasan\_cec](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@vasan\_cec](https://www.ruby-forum.com/u/vasan_cec)\
**Post date:** [June 3, 2010, 7:43am UTC](https://www.ruby-forum.com/t/smtp-configuration-in-rails-2-3-4/189455/2 "2010-06-03T07:43:48Z")

</div>

Can anyone help me on this?
