Merge pull request #470 from sartography/update-email-reply-address-629

Modify default sender for emails #629
This commit is contained in:
Dan Funk 2022-02-25 10:30:21 -05:00 committed by GitHub
commit dd7eddb936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ GIT_BRANCH = environ.get('GIT_BRANCH', None) # example: 'main'
GIT_MERGE_BRANCH = environ.get('GIT_MERGE_BRANCH', None) # Example: 'staging'
# Email configuration
DEFAULT_SENDER = 'uvacrconnect@virginia.edu'
DEFAULT_SENDER = 'crconnect2@virginia.edu'
FALLBACK_EMAILS = ['askresearch@virginia.edu', 'sartographysupport@googlegroups.com']
MAIL_DEBUG = environ.get('MAIL_DEBUG', default=True)
MAIL_SERVER = environ.get('MAIL_SERVER', default='smtp.mailtrap.io')

View File

@ -35,7 +35,7 @@ class TestEmailScript(BaseTest):
self.assertIn('<strong>Test Some Formatting</strong><br />', outbox[0].html)
# Correct From field
self.assertEqual('uvacrconnect@virginia.edu', outbox[0].sender)
self.assertEqual('crconnect2@virginia.edu', outbox[0].sender)
# Make sure we log the email
# Grab model for comparison below