How can I call a template instead of plain HTML to send email with django core email?
My views:
to = articles.user.email
html_content = '<p>This is your email content...</p>'
msg = EmailMultiAlternatives('You have an email',html_content,'from@server.com',[to])
msg.attach_alternative(html_content,'text/html')
msg.send()
In the variable html_content
you can see is plain HTML, how can I call here a template? This template would be the content of the email.