emails: Make confirm new email email come from 'Zulip Account Security.'

This commit is contained in:
James Rowan
2017-07-11 13:56:10 -04:00
committed by Tim Abbott
parent 0369a9f3bf
commit c1b89d1744

View File

@@ -640,7 +640,8 @@ def do_start_email_change_process(user_profile, new_email):
activation_url = EmailChangeConfirmation.objects.get_link_for_object(obj, user_profile.realm.host)
context = {'realm': user_profile.realm, 'old_email': old_email, 'new_email': new_email,
'activate_url': activation_url}
send_email('zerver/emails/confirm_new_email', new_email, from_address=FromAddress.NOREPLY, context=context)
send_email('zerver/emails/confirm_new_email', new_email, from_name='Zulip Account Security',
from_address=FromAddress.NOREPLY, context=context)
def compute_irc_user_fullname(email):
# type: (NonBinaryStr) -> NonBinaryStr