I tried to make use of the Mail API as provided in the gallery page. I
am using the web application as provided in
http://www.42topics.com/dumps/appengine-search/doc.html


I am trying to mail this content to a mail id. It is giving me issues
while doing so:

      results = get_search_results('Hello', query)
      results = results['Result']
      payload = dict(results=results, query=query)
      resp = template.render('index.html', payload)
      message = mail.EmailMessage (sender="[EMAIL PROTECTED]",
subject = "You searched for string " + query)
      msg = MIMEText(resp)
      message.to = mail
      message.body = msg.as_string()
      message.send()

Please let me what wrong I am doing here.

Regards,
Prakash

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