def METHOD_NAME(email: EmailMessage) -> None:
    """Used in development to record sent emails in a nice HTML log"""
    html_message: Union[bytes, EmailMessage, Message, str] = "Missing HTML message"
    assert isinstance(email, EmailMultiAlternatives)
    if len(email.alternatives) > 0:
        html_message = email.alternatives[0][0]
    context = {
        "subject": email.subject,
        "envelope_from": email.from_email,
        "from_email": email.extra_headers.get("From", email.from_email),
        "reply_to": email.reply_to,
        "recipients": email.to,
        "body": email.body,
        "html_message": html_message,
    }
    new_email = loader.render_to_string("zerver/email.html", context)
    # Read in the pre-existing log, so that we can add the new entry
    # at the top.
    try:
        with open(settings.EMAIL_CONTENT_LOG_PATH) as f:
            previous_emails = f.read()
    except FileNotFoundError:
        previous_emails = ""
    with open(settings.EMAIL_CONTENT_LOG_PATH, "w+") as f:
        f.write(new_email + previous_emails)