]> git.openstreetmap.org Git - rails.git/blob - config/initializers/action_mailer.rb
Bump coverallsapp/github-action from 1.2.4 to 2.1.0
[rails.git] / config / initializers / action_mailer.rb
1 # Configure queue to use for ActionMailer deliveries
2 ActionMailer::Base.deliver_later_queue_name = :mailers
3
4 # Configure ActionMailer SMTP settings
5 ActionMailer::Base.smtp_settings = {
6   :address => Settings.smtp_address,
7   :port => Settings.smtp_port,
8   :domain => Settings.smtp_domain,
9   :enable_starttls_auto => Settings.smtp_enable_starttls_auto,
10   :openssl_verify_mode => Settings.smtp_tls_verify_mode,
11   :authentication => Settings.smtp_authentication,
12   :user_name => Settings.smtp_user_name,
13   :password => Settings.smtp_password
14 }
15
16 # Set the host and protocol for all ActionMailer URLs
17 ActionMailer::Base.default_url_options = {
18   :host => Settings.server_url,
19   :protocol => Settings.server_protocol
20 }