diff options
-rw-r--r-- | apps/patchwork/utils.py | 2 | ||||
-rw-r--r-- | apps/settings.py | 1 | ||||
-rw-r--r-- | docs/INSTALL | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/apps/patchwork/utils.py b/apps/patchwork/utils.py index 94b3f53..58edb19 100644 --- a/apps/patchwork/utils.py +++ b/apps/patchwork/utils.py @@ -181,7 +181,7 @@ def send_notifications(): context) message = EmailMessage(subject = subject, body = content, - from_email = settings.DEFAULT_FROM_EMAIL, + from_email = settings.NOTIFICATION_FROM_EMAIL, to = [recipient.email], headers = {'Precedence': 'bulk'}) diff --git a/apps/settings.py b/apps/settings.py index d5595e0..4432f3f 100644 --- a/apps/settings.py +++ b/apps/settings.py @@ -104,6 +104,7 @@ DEFAULT_FROM_EMAIL = 'Patchwork <patchwork@patchwork.example.com>' CONFIRMATION_VALIDITY_DAYS = 7 NOTIFICATION_DELAY_MINUTES = 10 +NOTIFICATION_FROM_EMAIL = DEFAULT_FROM_EMAIL # Set to True to enable the Patchwork XML-RPC interface ENABLE_XMLRPC = False diff --git a/docs/INSTALL b/docs/INSTALL index 6a1a0bf..050fc9f 100644 --- a/docs/INSTALL +++ b/docs/INSTALL @@ -104,6 +104,8 @@ in brackets): ADMINS TIME_ZONE LANGUAGE_CODE + DEFAULT_FROM_EMAIL + NOTIFICATION_FROM_EMAIL You can generate the SECRET_KEY with the following python code: |