Posted By

nhocki on 08/20/10


Tagged

rails


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

enwood
kaks
thastyle


Rails - Send emails with Gmail's SMTP


 / Published in: Ruby
 

  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  

You need to login to post a comment.