SMTP Configuration in Rails 2.3.4

CSK Vasanth
Tue, 01 Jun 2010 09:40:41 -0000

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.
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at