...
require 'smtp_tls'
Rails::Initializer.run do |config|
...
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:authentication => :plain,
:user_name => "[email protected]",
:password => "your password"
}
end
Copy the file smtp_tls.rb to lib directory of your Ruby on Rails project.