[Answer]-Send the html content via email in Jquery

1👍

In your view, you need to render HTML(2) to a string and use the vanilla Django email functionality to actually send it.

from django.core.mail import send_mail
from django.template.loader import render_to_string


emailBody = render_to_string('email_template.html', {'templateVars': 'values'})

send_mail('Subject here', 'emailBody, 'from@example.com', ['to@example.com'], fail_silently=False)

As far as the CSS piece, you either need to host that separately or embed it in the email body. That’s another subject all together.

Leave a comment