Thanks for the confirmation.
The issue I am facing is that after uploading the code to appspot.com the landing page, is the general warning message page in IE. I have no logs to confirm what the issue is but in localhost at least it does not end throwing issues. If I remove this code and try I see both the landing page properly. Regards, Prakash On Mon, Nov 3, 2008 at 10:48 PM, pr3d4t0r <[EMAIL PROTECTED]> wrote: > > On Nov 2, 11:19 pm, Prakash <[EMAIL PROTECTED]> wrote: > > I tried to make use of the Mail API as provided in the gallery page. I > > am using the web application as provided inhttp:// > 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() > > This ought to work as long as message.to and sender are correct. Are > you running this example from the command line dev_appserver.py? If > so, you need to specify the MX server command line arguments. Here is > how I run that in my test environment: > > dev_appserver.py --smtp_host=192.168.0.240 --smtp_port=25 -- > show_mail_body myapp > > If this isn't working on the actual app uploaded to appspot.com then > the problem may be different. > > Cheers, > > pr3d4t0r > http://www.istheserverup.net > http://www.teslatestament.com > > > > --~--~---------~--~----~------------~-------~--~----~ 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-appengine@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---