强制mandrill API发送邮件,而不是django与smtp

时间:2021-12-01 18:13:49

Can django send data to Mandrill, so it will take care about sending mails? When i do with SMTP, I need to wait to page send mails(over 1000 mails).

django可以将数据发送到Mandrill,所以会关注发送邮件吗?当我使用SMTP时,我需要等待发送邮件(超过1000封邮件)。

I use django framework.

我使用django框架。

Is this possible?

这可能吗?

1 个解决方案

#1


1  

Fixed it with bcc and preserve recipients:

用bcc修复它并保留收件人:

msg = EmailMultiAlternatives(subject, plain_body, from_email, emails, headers={'X-MC-PreserveRecipients': False})
msg.attach_alternative(html_body, "text/html")
msg.send()

#1


1  

Fixed it with bcc and preserve recipients:

用bcc修复它并保留收件人:

msg = EmailMultiAlternatives(subject, plain_body, from_email, emails, headers={'X-MC-PreserveRecipients': False})
msg.attach_alternative(html_body, "text/html")
msg.send()