Skip to main content

generate_new_account_email

Generates an email object for new account notifications by rendering a template with user credentials and project settings.

def generate_new_account_email(
email_to: str,
username: str,
password: str
) - > EmailData

Generates the subject line and HTML body for a new account notification email using a predefined template.

Parameters

NameTypeDescription
email_tostrThe recipient's email address to be included in the template context.
usernamestrThe login name of the new user, used in both the subject line and the email body.
passwordstrThe temporary or initial password assigned to the user for their first login.

Returns

TypeDescription
EmailDataAn object containing the rendered HTML content and the formatted subject line for the email.