My Django app sends an email as follows:
mail_subject='Hi'
to_email='xyz@gmail.com'
message=render_to_string('app1/xyz.html',{
'user':User1,'var1':'BLUE'})
email = EmailMessage(mail_subject, message, to=[to_email])
email.send();
xyz.html
looks like below:
I would like for the following string to be bold
<strong>{{var1}}</strong>
but it just shows as <strong>BLUE</strong>
in the email. I would like to see BLUE