从一封电子邮件发送电子邮件可以正常工作,但如果我们想发送从多封电子邮件中给用户的电子邮件(我有3封需要的电子邮件选择任何一个,收件人会收到我选择的电子邮件(,所以请帮帮我,我是Django和Python 的新手
这是如何在django中发送多封电子邮件。
from django.core.mail import send_mail
send_mail(
'Subject here',
'Here is the message.',
'from@example.com',
['to@example.com', 'anotherTo@example.com'],
fail_silently=False,
)
这是django文档。https://docs.djangoproject.com/en/2.2/topics/email/
我希望这能有所帮助。也是django的初学者:(