使用 GAE 副本发件人发送电子邮件——如何停止? [英] sending email with GAE copies sender -- how to stop?
本文介绍了使用 GAE 副本发件人发送电子邮件——如何停止?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 GAE 创建一个应用程序,以允许人们在选举中投票,这涉及向每位选民发送电子邮件.我循环执行此操作:
I'm creating an app with GAE to allow people to vote in elections and this involves sending an email to each voter. I do this in a loop:
mail.send_mail(sender = manager.email(),
to = email,
subject = election.title,
body = body)
其中 manager 是登录用户.
where manager is the signed-in user.
这对经理来说似乎是在所有电子邮件中密件抄送,但我不希望这种情况发生.有没有办法只将电子邮件发送给预期的收件人?
This appears to BCC the manager on all emails, but I don't want that to happen. Is there a way to send the email only to the intended recipient?
推荐答案
您不能 - App Engine 自动密送发件人.如果您不想收到它们,您可以使用您应用的接收电子邮件地址之一作为发件人地址.
You can't - App Engine automatically BCCs the sender. If you don't want to receive them, you could use one of your app's incoming email addresses as the sender address.
这篇关于使用 GAE 副本发件人发送电子邮件——如何停止?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文