Here is quick example sending email in Django using template html.
1 2 3 4 | body = render_to_string("path/email_reset_password.html", {"user": user}) send_mail(subject, body, from, [to], fail_silently=False) |
Here is quick example sending email in Django using template html.
1 2 3 4 | body = render_to_string("path/email_reset_password.html", {"user": user}) send_mail(subject, body, from, [to], fail_silently=False) |