【发布时间】:2023-03-07 18:57:01
【问题描述】:
我试图在我的网站上使用应用引擎邮件发送服务。 目前,我提出了如下简单的内容:
message = mail.EmailMessage(sender="Subhranath Chunder <subhranath@gmail.com>", \
subject="Your account has been approved")
message.to = "Subhranath Chunder <subhranathc@yahoo.com>"
message.body = "Just another message"
message.send()
但每次代码处理程序引发此错误时:
2011-08-20 04:44:36.988
ApplicationError: 1 Internal error
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 703, in __call__
handler.post(*groups)
File "/base/data/home/apps/s~subhranath/0-2.352669327317975990/index.py", line 71, in post
message.send()
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/mail.py", line 895, in send
raise e
ApplicationError: ApplicationError: 1 Internal error
我的代码是另一个版本,而不是默认版本。我无法将此版本更改为默认版本,除非此错误得到解决。知道为什么会这样吗?
【问题讨论】: