vidpush/config/initializers/smtp.rb
2014-04-07 14:41:34 -04:00

11 lines
339 B
Ruby

if Rails.env.staging? || Rails.env.production?
SMTP_SETTINGS = {
address: ENV.fetch('SMTP_ADDRESS'), # example: 'smtp.sendgrid.net'
authentication: :plain,
domain: ENV.fetch('SMTP_DOMAIN'), # example: 'this-app.com'
password: ENV.fetch('SMTP_PASSWORD'),
port: '587',
user_name: ENV.fetch('SMTP_USERNAME')
}
end