what's your form and routing code look like? On Thu, Nov 18, 2010 at 2:52 PM, Zeynel <azeyn...@gmail.com> wrote: > Hello, > > I am trying to send email by using the examples in the tutorial: > > http://code.google.com/appengine/docs/python/mail/overview.html > > > ************************************************ > class MainPage(webapp.RequestHandler): > def get(self): > > message = mail.EmailMessage(sender="sen...@gmail.com", > subject="test email from app") > message.to = "recei...@gmail.com" > message.body = "Hello" > > message.send() > > def post(self): > user_address = "recei...@gmail.com" > > confirmation_url = "http://support.example.com/" > sender_address = "sen...@gmail.com" > subject = "confirm your registration" > body = "Click on the link %s " % confirmation_url > > mail.send_mail(sender_address, user_address, subject, body) > ****************************************************** > > The first version works; but the second one works only if I change it > to "get": > > def get(self): > user_address = "a...@gmail.com" > .... > > Can anyone explain how get and post work in this context. 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-appeng...@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. > >
-- Erick Fleming -- 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-appeng...@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.