This is to help you setup SMTP email using either sendmail or Godaddy in Ruby on Rails. RoR as usual makes it very easy for us to do that.
Open ROOT/config/environment.rb file
For sendmail, add following lines -
ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.server_settings = {
:domain => ‘www.example.com’
}
For Godaddy, add following lines -
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => ’smtpout.secureserver.net’,
:domain => ‘www.example.com’,
:port [...]
Filed under: Technical | Tagged: email setup, godaddy, ruby on rails | No Comments »