]> git.openstreetmap.org Git - rails.git/blob - config/initializers/action_mailer.rb
Rework the routing credit to use a bootstrap class
[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   :authentication => Settings.smtp_authentication,
11   :user_name => Settings.smtp_user_name,
12   :password => Settings.smtp_password
13 }
14
15 # Set the host and protocol for all ActionMailer URLs
16 ActionMailer::Base.default_url_options = {
17   :host => Settings.server_url,
18   :protocol => Settings.server_protocol
19 }