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

        message.send()

    def post(self):
        user_address = "[email protected]"

        confirmation_url = "http://support.example.com/";
        sender_address = "[email protected]"
        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 = "[email protected]"
        ....

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 [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.

Reply via email to