The development server can be configured to send email messages
directly from your computer when you test a feature of your app that
sends messages. You can configure the development server to use an
SMTP server of your choice. Alternatively, you can tell the
development server to use Sendmail, if Sendmail is installed on your
computer and set up for sending email.
If you do not configure an SMTP server or enable Sendmail, when your
app calls the Mail service, the development server will log the
contents of the message. The message will not actually be sent.
这是因为dev_appserver默认情况下不发送真实的邮件。在
当您将电子邮件发送到实时服务器时,将起作用,例如:
但正如错误消息所指出的,如果系统上安装了sendmail或使用了smtp标志,则必须使用
^{pr2}$enable_sendmail
标志,例如:或者另一个例子,使用gmail作为smtp提供者
更多说明:https://cloud.google.com/appengine/docs/python/mail/
相关问题 更多 >
编程相关推荐