configure mailer
This commit is contained in:
@ -55,11 +55,24 @@ Rails.application.configure do
|
||||
# config.active_job.queue_adapter = :resque
|
||||
# config.active_job.queue_name_prefix = "hubfeenix_fi_production"
|
||||
|
||||
config.action_mailer.perform_caching = false
|
||||
|
||||
# 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.
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
config.action_mailer.smtp_settings = {
|
||||
:address => Rails.application.credentials.mail_server,
|
||||
:port => 465,
|
||||
:domain => Rails.application.credentials.domain_name,
|
||||
:user_name => Rails.application.credentials.admin_email,
|
||||
:password => Rails.application.credentials.admin_pass,
|
||||
:ssl => true,
|
||||
:tls => true,
|
||||
:authentication => :login,
|
||||
:enable_starttls_auto => true
|
||||
}
|
||||
|
||||
# ActionMailer Config
|
||||
config.action_mailer.default_url_options = { :host => Rails.application.credentials.domain_name }
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.perform_deliveries = true
|
||||
config.action_mailer.raise_delivery_errors = true
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation cannot be found).
|
||||
|
Reference in New Issue
Block a user