Last active
May 15, 2020 00:57
-
-
Save MichalZalecki/be5563bca03279d4fd0b to your computer and use it in GitHub Desktop.
Gmail configuration for Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /config/environments/development.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
how to set username and password for development?