I want to improve deliverability rates by providing both text-only and html versions of emails:
text_content = ???
html_content = ???
msg = EmailMultiAlternatives(subject, text_content, 'from@site.com', ['to@site.com'])
msg.attach_alternative(html_content, "text/html")
msg.send()
How can I do this without duplicating email templates?