Skip to content

Instantly share code, notes, and snippets.

@MichalZalecki
Last active May 15, 2020 00:57
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichalZalecki/be5563bca03279d4fd0b to your computer and use it in GitHub Desktop.
Save MichalZalecki/be5563bca03279d4fd0b to your computer and use it in GitHub Desktop.
Gmail configuration for Rails
# /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
}
@dsomel21
Copy link

Bless

@yournumberone
Copy link

how to set username and password for development?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment