Hi,
>From our documentation (
http://code.google.com/appengine/docs/mail/sendingmail.html): "The sender
address can be either the email address of a registered administrator for
the application, or the email address of the current signed-in user (the
user making the request that is sending the message)."
-Marzia
On Mon, Dec 8, 2008 at 3:49 AM, amshuhu <[EMAIL PROTECTED]> wrote:
>
> Hello developers,
>
>
> In my application mailsending is creating a problem the code as
> follows:
>
> class Contact(webapp.RequestHandler):
> def get(self):
> self.response.out.write(template.render('contactus.html', {}))
>
> def post(self):
> sender_address ="[EMAIL PROTECTED]"
> subject = self.request.get("subject")
> content = self.request.get("comment")
> name = self.request.get("user_name")
> phoneno = self.request.get("phone_no")
> user_email ="[EMAIL PROTECTED]"
> user_email_id = self.request.get("email_id")
> body=""" Here is the user details
> User Email : %s
> Name: %s
> Phone no: %s
> -----------------------
> %s
> """ %(user_email_id,name,phoneno,content)
>
> mail.send_mail(sender_address,user_email,subject,body)
> self.redirect("/thanks.html")
>
>
> if i deploy the code it says error as
>
> Traceback (most recent call last):
> File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 501, in __call__
>
> handler.post(*groups)
> File "/base/data/home/apps/jjaicar/1.329834155694882780/mobile.py",
> line 35, in post
> mail.send_mail(sender_address,user_email,subject,body)
> File "/base/python_lib/versions/1/google/appengine/api/mail.py",
> line 205, in send_mail
>
> message.send(make_sync_call)
> 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
>
>
>
> could u plz help me
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---