diff --git a/zerver/lib/notifications.py b/zerver/lib/notifications.py index a88d4e7b39..8f1395d3d0 100644 --- a/zerver/lib/notifications.py +++ b/zerver/lib/notifications.py @@ -320,7 +320,8 @@ def do_send_missedmessage_events_reply_in_zulip(user_profile, missed_messages, m 'realm_str': user_profile.realm.name, }) - from_name, from_address = None, None + from_name = "Zulip Missed Messages" # type: Text + from_address = FromAddress.NOREPLY if len(senders) == 1 and settings.SEND_MISSED_MESSAGE_EMAILS_AS_USER: # If this setting is enabled, you can reply to the Zulip # missed message emails directly back to the original sender. diff --git a/zerver/tests/test_notifications.py b/zerver/tests/test_notifications.py index 6f05005e60..94b3debafc 100644 --- a/zerver/tests/test_notifications.py +++ b/zerver/tests/test_notifications.py @@ -48,7 +48,7 @@ class TestMissedMessages(ZulipTestCase): else: reply_to_emails = ["noreply@zulip.example.com"] msg = mail.outbox[0] - from_email = formataddr(("Zulip", FromAddress.NOREPLY)) + from_email = formataddr(("Zulip Missed Messages", FromAddress.NOREPLY)) self.assertEqual(len(mail.outbox), 1) if send_as_user: from_email = '"%s" <%s>' % (othello.full_name, othello.email)