Tag Archives: action-mailer

ActionMailer SMTP settings in rails

1. Add following line to rails environment file ActionMailer::Base.delivery_method = :smtp2. Include your email authenticationCreate a ruby file called smtp_settings under config/initializers directory# config/initializers/smtp_settings.rbActionMailer::Base.smtp_settings = { :address => “smtp.gmail.com”, :port => 587, :authentication => :plain, :enable_starttls_auto => true, :user_name => … Continue reading

Posted in Ruby on Rails | Tagged | Leave a comment