email-templates: Add account_registered email templates.

The "followup_day1" email template name is not clear or descriptive
about the purpose of the email. Creates a duplicate of those email
template files with the template name "account_registered".

Because any existing scheduled emails that use the "followup_day1"
templates will need to be updated before the current templates can
be removed, we don't do a simple file rename here.
This commit is contained in:
Lauryn Menard
2023-07-18 11:44:27 +02:00
committed by Tim Abbott
parent 170a857bc1
commit c491bef07b
7 changed files with 127 additions and 9 deletions

View File

@@ -802,7 +802,7 @@ def send_account_registered_email(user: UserProfile, realm_creation: bool = Fals
break
send_future_email(
"zerver/emails/followup_day1",
"zerver/emails/account_registered",
user.realm,
to_user_ids=[user.id],
from_name=from_name,