我无法通过Google App Engine的应用程序发送电子邮件。我遇到了几个新手障碍,我将非常感谢您的帮助。InvalidSenderError:未经授权的发件人(Google App Engine)
我把这个功能从the tutorial和“发件人”字段,我把我的Gmail帐户,我用来创建应用程序:
mail.send_mail(sender="[email protected]",
to="[email protected]",
subject="test email from app",
body="hello")
当我尝试,我得到的错误:
InvalidSenderError: Unauthorized sender
但电子邮件
sender="[email protected]",
是我用来登录到应用程序的电子邮件;这是我用来创建应用程序的电子邮件。
的教程说:
The email address of the sender, the From address. The sender address must be one of the following types: The address of a registered administrator for the application. You can add administrators to an application using the Administration Console.
所以我用来创建应用程序的电子邮件应该作为发件人工作。我究竟做错了什么?谢谢。
(我问在GAE组same question,但没有回应)
[Google Appengine发送电子邮件:\ [Error \]未授权发件人]的可能副本(http://stackoverflow.com/questions/11621019/google-appengine-sending-emails-error-unauthorized-sender) – LtWorf 2013-12-27 07:21:39