这: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.
我下载了Sendmail lib,发现它太大了,而且文档很多,
我想知道哪种方式更好,
如果Sendmail方式更好,那么如何简单地使用它,
感谢
更新
如果无法设置sendmail lib,不能使用此方法(mail.send_mail),是吗?:
from google.appengine.api import mail
mail.send_mail(sender="support@example.com",
to="Albert Johnson <Albert.Johnson@example.com>",
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
""")
答案 0 :(得分:2)
正如Wooble所指出的,这仅适用于从开发环境发送电子邮件 - 因此请选择最简单的选项。如果您无法使其中任何一个工作,开发服务器上发送的电子邮件仍会显示在您的日志中,因此您可以在那里进行调试。