1 # Configure queue to use for ActionMailer deliveries
2 ActionMailer::Base.deliver_later_queue_name = :mailers
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 :openssl_verify_mode => OpenSSL::SSL::VERIFY_NONE
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