added mailer
This commit is contained in:
@@ -73,4 +73,17 @@ Rails.application.configure do
|
||||
|
||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
||||
config.log_formatter = ::Logger::Formatter.new
|
||||
|
||||
config.action_mailer.default_url_options = { host: 'ch420.herokuapp.com' }
|
||||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {
|
||||
port: '587',
|
||||
address: ENV['SMTP_HOST'],
|
||||
user_name: ENV['SMTP_USER'],
|
||||
password: ENV['SMTP_PASSWORD'],
|
||||
domain: 'hanflegal.ch',
|
||||
authentication: :plain,
|
||||
enable_starttls_auto: true
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user