使用 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.