InvalidSenderError: Unauthorized Sender (Google App Engine)

I'm having trouble sending emails from my app to Google App Engine. I am experiencing several obstacles to the new program, and I would appreciate your help.

I take this function from the tutorial and for the sender field I put my gmail account, which I used to create the application:

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

when I try to do this, I get an error:

 InvalidSenderError: Unauthorized sender 

But email

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

- This is the email that I use to enter the application; This is the letter I used to create the application.

The textbook 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 letter I used to create the application should work as a sender. What am I doing wrong? Thanks.

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

+6
google-app-engine
source share
1 answer

I read that aliases and nicknames through Google apps will not be recognized as their base address, so this may be the problem. I approached this just a few days ago, and making sure that all the sender addresses are listed in the "Permissions" section of the application console, all this worked fine.

+7
source share

All Articles