Skip to content

Instantly share code, notes, and snippets.

@jheth
Created March 25, 2013 17:50
Show Gist options
  • Save jheth/5239103 to your computer and use it in GitHub Desktop.
Save jheth/5239103 to your computer and use it in GitHub Desktop.
Rails mailer configuration for Google Apps
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => "587",
:domain => "domain.com",
:authentication => :login,
:user_name => "user@domain.com",
:password => "password"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment