Django:通过send_mass_mail()发送HTML电子邮件 [英] Django: Send HTML email via send_mass_mail()

查看:138
本文介绍了Django:通过send_mass_mail()发送HTML电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从电子邮件上的文档看来,HTML应该用于send_mail(),而不适用于send_mass_mail().我的理解是正确的吗?如果可以,是否可以通过一种解决方法来获得HTML的send_mass_mail()功能而无需编写自定义循环?

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/

推荐答案

您应该检查此答案在此人创建的地方定制的send_mass_mail()函数,该函数接受与EmailMultiAlternatives

You should check this answer where the guy creates a customized send_mass_mail() function that accepts HTML working with EmailMultiAlternatives

这篇关于Django:通过send_mass_mail()发送HTML电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆