Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InvalidSenderError: Unauthorized sender (Google App Engine)

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="[email protected]", 
                       to="[email protected]", 
                       subject="test email from app", 
                       body="hello") 

when I try this, I get the error:

InvalidSenderError: Unauthorized sender 

But the email

sender="[email protected]", 

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)

like image 256
Zeynel Avatar asked Nov 18 '10 17:11

Zeynel


1 Answers

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.

like image 115
Steven Kampen Avatar answered Oct 24 '22 16:10

Steven Kampen