Action Mailer with Gmail or Another Email Account

[1] you can import svn http://svn.nanorails.com/plugins/action_mailer_tls/ to your /vendor/plugins/

[2] edit your environment.rb by adding the last line this code:

require "smtp_tls"

ActionMailer::Base.raise_delivery_errors = false
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'gmail.com',
:user_name => "convert.ruby.to@gmail.com",
:password => "rubyisred",
:authentication => :plain
}

[3] 100% works

Have nice try and success

1 Response to "Action Mailer with Gmail or Another Email Account"

Erik said...

Or install the action_mailer_tls gem instead!

 
powered by Blogger