The sender must be the email address of a registered administrator for
the application, or the address of the current signed-in user:
http://code.google.com/appengine/docs/python/mail/emailmessagefields.html


On Mar 15, 6:28 pm, Ronn Ross <ronn.r...@gmail.com> wrote:
> I'm trying to send an email using the following code:
>           message = mail.EmailMessage(sender="supp...@myappname.com",
>                             subject="this is the subject")
>                 message.to = "John Doe <john...@gmail.com>"
>                 message.body = "this is the body"
>
>                 message.send()
>
> and here is the error I'm getting from app engine:
>
> Traceback (most recent call last):
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py",
> line 503, in __call__
>     handler.post(*groups)
>   File "/base/data/home/apps/lavortaro/1.332099322772630499/lavortaro.py",
> line 40, in post
>     message.send()
>   File "/base/python_lib/versions/1/google/appengine/api/mail.py",
> line 477, in send
>     raise ERROR_MAP[e.application_error](e.error_detail)
> InvalidSenderError
>
> I'm new to app engine and python. Can someone please help?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to