openstreetmap-website/config/initializers/action_mailer.rb
Andy Allan d102c9aaf4 Move all settings to settings.yml
We leave the STATUS setting alone, since it's required before rails
boots. The test-specific settings now live in config/settings/test.yml
2019-03-13 18:06:23 +01:00

13 lines
351 B
Ruby

# Configure ActionMailer SMTP settings
ActionMailer::Base.smtp_settings = {
:address => "localhost",
:port => 25,
:domain => "localhost",
:enable_starttls_auto => false
}
# Set the host and protocol for all ActionMailer URLs
ActionMailer::Base.default_url_options = {
:host => Settings.server_url,
:protocol => Settings.server_protocol
}