Django email message as HTML
I have an email template that I use to send emails of different kinds. I'd rather not keep multiple email HTML templates, so the best way to handle this is to customize the message contents. Like so: def email_form(request): html_message = loader.render_to_string( 'register/email-template.html', { 'hero': 'email_hero.png', 'message': 'We\'ll be contacting you shortly! If you have any questions, you can contact us at <a href="#">meow@something.com</a>', 'from_email': 'lala@lala.com', } ) email_subject = 'Thank you for your beeswax!' to_list = 'johndoe@whatever.com' send_mail(email_subject,