Skip to content

Instantly share code, notes, and snippets.

@nerdyworm
Created December 9, 2010 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nerdyworm/734821 to your computer and use it in GitHub Desktop.
Save nerdyworm/734821 to your computer and use it in GitHub Desktop.
My rails mail initializer file.
ActionMailer::Base.smtp_settings = {
:address => ENV['SMTP_ADDRESS'],
:port => ENV['SMTP_PORT'],
:domain => ENV['SMTP_DOMAIN'],
:user_name => ENV['SMTP_USERNAME'], #username@domain.com for google apps accounts
:password => ENV['SMTP_PASSWORD'],
:authentication => "plain",
:enable_starttls_auto => true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment