config/environments/production.rb
- config.action_mailer.delivery_method = :smtp
- config.action_mailer.default_url_options = { :host => 'xxx.xxxxx.xxx' }
- config.action_mailer.smtp_settings = {
- :address => 'smtp.gmail.com',
- :port => 587,
- :user_name => ENV["gmail_username"],
- :password => ENV["gmail_password"],
- :domain => 'xxx.xxxxx.xxx',
- :authentication => 'plain',
- :enable_starttls_auto => true }
- config.action_mailer.delivery_method = :smtp
- config.action_mailer.default_url_options = { :host => 'xxx.xxxxx.xxx' }
- config.action_mailer.smtp_settings = {
- :address => ENV['MAILGUN_SMTP_SERVER'],
- :port => ENV['MAILGUN_SMTP_PORT'],
- :user_name => ENV['MAILGUN_SMTP_LOGIN'],
- :password => ENV['MAILGUN_SMTP_PASSWORD'],
- :domain => 'xxx.xxxxx.xxx',
- :authentication => 'plain',
- :enable_starttls_auto => true }