Move email configuration out of the model and into the config file
This commit is contained in:
parent
4ef2cb9a71
commit
cd89a3c662
2 changed files with 6 additions and 2 deletions
|
@ -99,8 +99,8 @@ private
|
|||
def common_headers(recipient)
|
||||
recipients recipient.email
|
||||
locale recipient.preferred_language_from(I18n.available_locales)
|
||||
from "OpenStreetMap <webmaster@openstreetmap.org>"
|
||||
headers "return-path" => "bounces@openstreetmap.org",
|
||||
from EMAIL_FROM
|
||||
headers "return-path" => EMAIL_RETURN_PATH,
|
||||
"Auto-Submitted" => "auto-generated"
|
||||
end
|
||||
|
||||
|
|
|
@ -13,6 +13,10 @@ SERVER_URL = ENV['OSM_SERVER_URL'] || 'www.openstreetmap.org'
|
|||
# Set the generator
|
||||
GENERATOR = ENV['OSM_SERVER_GENERATOR'] || 'OpenStreetMap server'
|
||||
|
||||
# Settings for generated emails (e.g. signup confirmation
|
||||
EMAIL_FROM = ENV['OSM_EMAIL_FROM'] || 'OpenStreetMap <webmaster@openstreetmap.org>'
|
||||
EMAIL_RETURN_PATH = ENV['OSM_EMAIL_RETURN_PATH'] || 'bounces@openstreetmap.org'
|
||||
|
||||
# Application constants needed for routes.rb - must go before Initializer call
|
||||
API_VERSION = ENV['OSM_API_VERSION'] || '0.6'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue