Posted By

gmericksen on 05/15/10


Tagged


Versions (?)

Google ActionMailer Fix


 / Published in: Rails
 

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

  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  

You need to login to post a comment.