Move email configuration out of the model and into the config file

This commit is contained in:
Andy Allan 2010-05-01 12:36:22 +01:00
parent 4ef2cb9a71
commit cd89a3c662
2 changed files with 6 additions and 2 deletions

View file

@ -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