views:

185

answers:

1

this: http://code.google.com/intl/en/appengine/docs/python/tools/devserver.html

The web server can use an SMTP server, or it can use a local installation of Sendmail.

i download the Sendmail lib,and find it is so big, and so many doc,

i want to know which way is better,

and if the Sendmail way is better, how to use it simplely,

thanks

updated:

if can't setup the sendmail lib,can't use this method (mail.send_mail) ,yes?:

from google.appengine.api import mail

mail.send_mail(sender="[email protected]",
              to="Albert Johnson <[email protected]>",
              subject="Your account has been approved",
              body="""
Dear Albert:

Your example.com account has been approved.  You can now visit
http://www.example.com/ and sign in using your Google Account to
access new features.

Please let us know if you have any questions.

The example.com Team
""")
+1  A: 

As Wooble points out, this only applies to sending email from the development environment - so pick whichever option is easiest. If you can't get any of them working, email sent on the development server will still show up in your logs, so you can debug it there.

Nick Johnson