Skip to content

Instantly share code, notes, and snippets.

@eLafo
Created April 15, 2010 15:26
Show Gist options
  • Save eLafo/367220 to your computer and use it in GitHub Desktop.
Save eLafo/367220 to your computer and use it in GitHub Desktop.
mailer.rb
ActionMailer::Base.default_charset = 'utf-8'
ActionMailer::Base.default_content_type = 'text/html'
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => 587,
:domain => "gmail.com",
:user_name => "[email protected]",
:password => "password",
:authentication => :plain
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment