Commit 1016e640 by John Doe

added smtp settings for production

parent 83a959d6
Showing with 13 additions and 1 deletions
......@@ -40,7 +40,7 @@ Rails.application.configure do
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
config.force_ssl = true
# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
......@@ -56,6 +56,18 @@ Rails.application.configure do
# config.active_job.queue_adapter = :resque
# config.active_job.queue_name_prefix = "control_panel_#{Rails.env}"
config.action_mailer.perform_caching = false
config.action_mailer.default_url_options = {:host => 'beta.wattsworth.net'}
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "mail.wattsworth.net",
:port => 25,
:domain => "wattsworth.net",
:user_name => ENV['SMTP_USERNAME'],
:password => ENV['GMAIL_PASSWORD'],
:authentication => "login",
:enable_starttls_auto => true
}
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment