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
| Name | Type | Description |
|---|---|---|
| email_to | str | The recipient's email address to be included in the template context. |
| username | str | The login name of the new user, used in both the subject line and the email body. |
| password | str | The temporary or initial password assigned to the user for their first login. |
Returns
| Type | Description |
|---|---|
EmailData | An object containing the rendered HTML content and the formatted subject line for the email. |