pontoon/messaging/emails.py [479:502]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            continue

        content = jinja_env.from_string(email_content.body).render({"locale": locale})
        body_html = template.render(
            {
                "content": content,
                "settings": settings,
                "subject": subject,
            }
        )
        body_text = html_to_plain_text_with_links(body_html)

        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)
    now = timezone.now()
    UserProfile.objects.filter(user__in=pks).update(last_inactive_reminder_sent=now)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pontoon/messaging/emails.py [522:545]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            continue

        content = jinja_env.from_string(email_content.body).render({"locale": locale})
        body_html = template.render(
            {
                "content": content,
                "settings": settings,
                "subject": subject,
            }
        )
        body_text = html_to_plain_text_with_links(body_html)

        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)
    now = timezone.now()
    UserProfile.objects.filter(user__in=pks).update(last_inactive_reminder_sent=now)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



