Ruby on Rails Tuesday, June 1, 2010

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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment