pontoon/messaging/emails.py [361:384]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    content = jinja_env.from_string(email_content.body).render()

    subject = email_content.subject
    template = get_template("messaging/emails/transactional.html")

    body_html = template.render(
        {
            "content": content,
            "subject": subject,
        }
    )
    body_text = html_to_plain_text_with_links(body_html)

    for user in users:
        msg = EmailMultiAlternatives(
            subject=subject,
            body=body_text,
            from_email=settings.DEFAULT_FROM_EMAIL,
            to=[user.contact_email],
        )
        msg.attach_alternative(body_html, "text/html")
        msg.send()

    pks = users.values_list("pk", flat=True)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pontoon/messaging/emails.py [397:420]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    content = jinja_env.from_string(email_content.body).render()

    subject = email_content.subject
    template = get_template("messaging/emails/transactional.html")

    body_html = template.render(
        {
            "content": content,
            "subject": subject,
        }
    )
    body_text = html_to_plain_text_with_links(body_html)

    for user in users:
        msg = EmailMultiAlternatives(
            subject=subject,
            body=body_text,
            from_email=settings.DEFAULT_FROM_EMAIL,
            to=[user.contact_email],
        )
        msg.attach_alternative(body_html, "text/html")
        msg.send()

    pks = users.values_list("pk", flat=True)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



