【发布时间】:2016-08-21 19:37:55
【问题描述】:
我正在尝试使用 Python 和 Google App Engine 向某些地址发送自动电子邮件:
message = mail.EmailMessage(sender="noreply@"+app_identity.get_application_id()+".appspotmail.com",subject="Verify Email",to="Bob Person <bob.person@gmail.com>")
message.body = "Hey, someone tried to register an account with this email."
message.send()
我已删除自己的电子邮件并用 Bob Person 替换它,但我的电子邮件是正确的。此外,我可以确认使用无效的发件人电子邮件会产生无效的发件人错误,所以这不是问题。任何人都可以对此有所了解吗?
【问题讨论】:
-
@DanCornilescu 是的,我认为发件人是正确的
-
顺便说一句 - “发送邮件不起作用”到底是什么意思?
-
@DanCornilescu 好吧,没有错误或退回邮件,但邮件没有送达:(
标签: python email google-app-engine