Google ActionMailer Fix


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

Anatol Pomozov has written a small library using net/smtp and OpenSSL that changes some of net/smtp's methods to allow it to directly talk to secure SMTP servers such as GMail's. He also presents an example of what to do in your Rails application that looks like this:

http://blog.pomozov.info/posts/how-to-send-actionmailer-mails-to-gmailcom.html


Copy this code and paste it in your HTML
  1. require 'smtp_tls'
  2.  
  3. ActionMailer::Base.server_settings = {
  4. :address => "smtp.gmail.com",
  5. :port => "587",
  6. :domain => "localhost.localdomain",
  7. :authentication => :plain,
  8. :user_name => "someusername",
  9. :password => "somepassword"
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.