diff --git a/templates/zerver/emails/confirm_new_email.subject.txt b/templates/zerver/emails/confirm_new_email.subject.txt index 637ea20aa3..406468c41a 100644 --- a/templates/zerver/emails/confirm_new_email.subject.txt +++ b/templates/zerver/emails/confirm_new_email.subject.txt @@ -1 +1 @@ -{{ _("Verify your new email address") }} +{% trans %}Verify your new email address for {{ organization_host }}{% endtrans %} diff --git a/zerver/actions/user_settings.py b/zerver/actions/user_settings.py index 118548a8c5..0125ef07d9 100644 --- a/zerver/actions/user_settings.py +++ b/zerver/actions/user_settings.py @@ -149,6 +149,7 @@ def do_start_email_change_process(user_profile: UserProfile, new_email: str) -> old_email=old_email, new_email=new_email, activate_url=activation_url, + organization_host=user_profile.realm.host, ) language = user_profile.default_language diff --git a/zerver/tests/test_email_change.py b/zerver/tests/test_email_change.py index b7ec6adef8..1c184140c7 100644 --- a/zerver/tests/test_email_change.py +++ b/zerver/tests/test_email_change.py @@ -39,7 +39,7 @@ class EmailChangeTestCase(ZulipTestCase): email_message = mail.outbox[0] self.assertEqual( email_message.subject, - "Verify your new email address", + "Verify your new email address for zulip.testserver", ) body = email_message.body self.assertIn("We received a request to change the email", body) @@ -168,7 +168,7 @@ class EmailChangeTestCase(ZulipTestCase): email_message = mail.outbox[0] self.assertEqual( email_message.subject, - "Verify your new email address", + "Verify your new email address for zulip.testserver", ) body = email_message.body self.assertIn("We received a request to change the email", body)