问题
It seems from the docs on email that HTML is supposed for send_mail()
but not send_mass_mail()
. Is my understanding correct, and if so is there a work-around to get the send_mass_mail()
functionality with HTML without writing a custom loop?
https://docs.djangoproject.com/en/1.7/topics/email/
回答1:
You should check this answer where the guy creates a customized send_mass_mail()
function that accepts HTML working with EmailMultiAlternatives
来源:https://stackoverflow.com/questions/26378008/django-send-html-email-via-send-mass-mail