I am getting an encode error from the snippet
of code below. The error is referring to the
very last line of the code snippet below.

How can I fix it, please?

Thanks,

Brian in Atlanta

**************error message below********
  File "/Users/brian/googleapps/howsmy/main.py", line 213, in post
    mail.send_mail(sender_address, user_address, subject, body)

**************code excerpt below*********

from google.appengine.api import mail

class Message(db.Model):
    comment = db.TextProperty()

class SendMessage(webapp.RequestHandler):
    def post(self):
        comment = self.request.get('comment')
        user_address = [email protected]
        sender_address = [email protected]
        subject = "Hi"
        message = Message(key_name="me")
        message.comment = comment
        body = message.comment
        mail.send_mail(sender_address, user_address, subject, body)


--~--~---------~--~----~------------~-------~--~----~
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