530 5.7.0 Must issue a STARTTLS command first. k41sm7289021rvb.4
The problem is that Gmail requires TLS authentication but the standard Ruby net/smtp library doesn't support TLS.
Of course there is a helpful plugin created by Marc Chung to overcome this barrier. You can find it here and manually add it to your project or you can export it to your plugin directory.
$ cd vendor/plugins
$ svn export http://code.openrain.com/rails/action_mailer_tls/
Either way make sure you require 'smtp_tls'
Now all you need is to update your smtp_settings if you haven't done so already.
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "domain.com",
:user_name => "user@domain.com",
:password => "password",
:authentication => :plain
}
You can now enjoy the benefits of a free email server.
7 comments:
Thanks for the article. However, I'm still a little confused. Shouldn't the domain and password be gmail.com and valid gmail account, respectively? Or does this refer to something else?
I believe http://code.openrain.com is no longer available. Do you have the URL to the new location?
http://github.com/openrain/action_mailer_tls
that is the new url of the plugin ;)
best Regards
www.4minds.cl
Divorce Records Birth records by state
cialis online
Free Arrest Records Search
I recently came across your blog and have been reading the superlative contents on your blogs, thanks for sharing here and if anyone looking for dominican republic birth records then visit dominicanvitalrecords.com/us
Post a Comment