InvalidSenderError:未经授权的发件人(Google App Engine) [英] InvalidSenderError: Unauthorized sender (Google App Engine)

查看:850
本文介绍了InvalidSenderError:未经授权的发件人(Google App Engine)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过Google App Engine的应用发送电子邮件。



我从教程以及发件人字段,我将我用于创建应用程序的gmail帐户:

  mail.send_mail(sender =owners_email_acco ... @ gmail.com,
to =xxxx ... @ gmail.com,
subject =从应用程序测试电子邮件,
body =hello)

这是,我得到的错误:

  InvalidSenderError:未授权的发件人

但是电子邮件

  sender =owners_email_acco ... @ gmail .com,

是我用来登录应用程序的电子邮件;这是我用来创建应用程序的电子邮件。



本教程说明:

发件人的电子邮件地址,发件人地址。发件人地址必须是以下类型之一:应用程序的注册管理员地址。您可以使用管理控制台将管理员添加到应用程序中。



因此,我用来创建应用程序的电子邮件应该作为发件人。我究竟做错了什么?感谢。



(我询问了,但没有答复)

我读了别名和昵称通过谷歌应用程序不会被认为是他们的底层地址,所以也许这就是问题所在。
我在几天前处理过这个问题,并确保所有发件人地址都列在应用程序控制台的权限部分,这一切都正常。


I am having trouble sending email from my app at Google App Engine. I am experiencing several newbee hurdles and I would appreciate your help.

I take this function from the tutorial and for the "sender" field I put my gmail account that I used to create the app:

mail.send_mail(sender="owners_email_acco...@gmail.com", 
                       to="xxxx...@gmail.com", 
                       subject="test email from app", 
                       body="hello") 

when I try this, I get the error:

InvalidSenderError: Unauthorized sender 

But the email

sender="owners_email_acco...@gmail.com", 

is the email I use to log into the app; this is the email I used to create the app.

The tutorial says:

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.

So the email I used to create the app should work as a sender. What am I doing wrong? Thanks.

(I asked the same question in GAE group but there was no reply)

解决方案

I read that aliases and nicknames through google apps won't be recognised as their underlying address so maybe that's the problem. I approached this just a few days ago and after making sure all sender addresses were listed in the 'permissions' section of the application console, it all worked fine.

这篇关于InvalidSenderError:未经授权的发件人(Google App Engine)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆