Hi all, the bottom line is, send emails from django using.core.mail import send_mail, the code of sending:
context = {
'order': order,
}
send_mail(
'Thanks for order',
get_template('emails/confirmation.html').render(
Context({
'context': context,
})
),
email_from,
[order.email],
fail_silently=True
)
The template itself confirmation.html with a tabular layout, without any styles, but when a letter comes in the mail in Prime display table, etc., and the tags table, tr, td. Tell me or I do not understand, or django doesn't know how to send html emails with tags without third-party packages? Googled the answer or example, could not find it. Thank you.