vidpush/config/initializers/smtp.rb

11 lines
339 B
Ruby
Raw Normal View History

2014-04-07 18:41:34 +00:00
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