Skip to content

Instantly share code, notes, and snippets.

@rorlab
Created October 5, 2012 08:46
Show Gist options
  • Save rorlab/3838800 to your computer and use it in GitHub Desktop.
Save rorlab/3838800 to your computer and use it in GitHub Desktop.
GMail Setting for Rails Mailer
config.action_mailer.default_url_options = { host: "yourdomain.com" }
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "yourdomain.com",
authentication: "plain",
enable_starttls_auto: true,
user_name: ENV["GMAIL_USERNAME"],
password: ENV["GMAIL_PASSWORD"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment