Skip to content

Instantly share code, notes, and snippets.

@thiyagarajan
Created February 16, 2018 06:42
Show Gist options
  • Save thiyagarajan/4ffffb0c382067a247a42c0bdee8f618 to your computer and use it in GitHub Desktop.
Save thiyagarajan/4ffffb0c382067a247a42c0bdee8f618 to your computer and use it in GitHub Desktop.
# /config/environments/development.rb or /config/environments/production.rb
# Gmail configuration
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: 'example.com',
user_name: ENV['EMAIL_USER'],
password: ENV['EMAIL_PASS'],
authentication: 'plain',
enable_starttls_auto: true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment