Skip to main content

generate_test_email

Generates a test email object by rendering a template with project settings and the recipient's address.

def generate_test_email(
email_to: string
) - > EmailData

Generates a test email object containing a rendered HTML body and a project-specific subject line for verification purposes.

Parameters

NameTypeDescription
email_tostringThe recipient email address used to populate the template context.

Returns

TypeDescription
EmailDataAn EmailData object containing the rendered HTML content and the formatted subject string.