Use DEFAULT_FROM_EMAIL; bug 557342
This commit is contained in:
Родитель
35b240dee0
Коммит
705a15071e
|
@ -41,7 +41,7 @@ def send_mail(subject, message, from_email=None, recipient_list=None,
|
|||
return True
|
||||
|
||||
if not from_email:
|
||||
from_email = settings.EMAIL_FROM_DEFAULT
|
||||
from_email = settings.DEFAULT_FROM_EMAIL
|
||||
|
||||
# Prune blacklisted emails.
|
||||
white_list = []
|
||||
|
|
|
@ -142,7 +142,7 @@ class Contribution(caching.base.CachingMixin, models.Model):
|
|||
raise ContributionError('Transaction not complete')
|
||||
|
||||
# Send from support_email, developer's email, or default.
|
||||
from_email = settings.EMAIL_FROM_DEFAULT
|
||||
from_email = settings.DEFAULT_FROM_EMAIL
|
||||
if self.addon.support_email:
|
||||
from_email = str(self.addon.support_email)
|
||||
else:
|
||||
|
|
|
@ -357,8 +357,6 @@ SESSION_EXPIRE_AT_BROWSER_CLOSE = True
|
|||
SESSION_COOKIE_AGE = 1209600
|
||||
SESSION_COOKIE_SECURE = True
|
||||
|
||||
DEFAULT_FROM_EMAIL = "Mozilla Add-ons <nobody@mozilla.org>"
|
||||
|
||||
# These should have app+locale at the start to avoid redirects
|
||||
LOGIN_URL = "/users/login"
|
||||
LOGOUT_URL = "/users/logout"
|
||||
|
@ -373,7 +371,7 @@ CAKE_SESSION_TIMEOUT = 8640
|
|||
PAYPAL_CGI_URL = 'https://www.paypal.com/cgi-bin/webscr'
|
||||
|
||||
# Email settings
|
||||
EMAIL_FROM_DEFAULT = 'nobody@mozilla.org'
|
||||
DEFAULT_FROM_EMAIL = "Mozilla Add-ons <nobody@mozilla.org>"
|
||||
|
||||
# Email goes to the console by default. s/console/smtp/ for regular delivery
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||
|
|
Загрузка…
Ссылка в новой задаче