Rails - Send emails with Gmail's SMTP


/ Published in: Ruby
Save to your folder(s)



Copy this code and paste it in your HTML
  1. ActionMailer::Base.smtp_settings = {
  2. :enable_starttls_auto => true, #this is the important shit!
  3. :address => 'smtp.gmail.com',
  4. :port => 587,
  5. :domain => 'your.domain.com',
  6. :authentication => :plain,
  7. :user_name => '[email protected]',
  8. :password => 'assword'
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.