in my view.py:
subject = "Thank you for your payment!"
template = render_to_string('cart/email_template2.html', {'name':
request.user.first_name,
'transaction_id' : transaction_id, 'total':total, 'items': items})
to = request.user.email
res = send_mail(subject , template , settings.EMAIL_HOST_USER, [to],
fail_silently=True)
in my email_template2.html:
Dear {{name}},
Thank you for making your payment towards:
Your Transaction ID is {{transaction_id}}
Total Amount Paid is {{total}} AED
Itβs been a pleasure doing business with you and below you will see the links to
download your purchased items.
{% for i in items %}
<a href="l{{ i }}"></a>
{% endfor %}
Best wishes,
here is the email i receive (output):
"i" are the links for the items to be downloaded but they are presented as text not links. How to add a link? I tried to add tag but in the email it stays that way.
Thanks...