Google应用引擎发送邮件服务引发异常 [英] Google app engine send mail service raises exception

查看:114
本文介绍了Google应用引擎发送邮件服务引发异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的网站上使用应用引擎邮件发送服务。
目前,我已经把一些简单的东西:

  message = mail.EmailMessage(sender =Subhranath Chunder < subhranath@gmail.com>,\ 
subject =您的帐户已被批准)
message.to =Subhranath Chunder< subhranathc@yahoo.com>
message.body =只是另一个消息
message.send()

但是每当代码处理程序产生这个错误时:

  2011-08-20 04:44:36.988 
ApplicationError :1内部错误
Traceback(最近一次调用最后一次):
文件/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py,第703行,在__call__
handler.post(* groups)
文件/base/data/home/apps/s~subhranath/0-2.352669327317975990/index.py,第71行,后
消息.send()
文件/base/python_runtime/python_lib/versions/1/google/appengine/api/mail.py,第895行,发送
提升e
ApplicationError:ApplicationError :1内部错误

我的代码是不同的版本,而不是默认的版本。我无法将此版本更改为默认版本,除非此错误得到解决。任何想法为什么发生这种情况? 解决方案

似乎是一个应用程序引擎系统故障。相同的代码现在可以工作,不需要任何新的部署。


I was trying to use the app engine mail sending service on my site. Currently, I've put something as simple as:

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()

But every time the code handler raises this error:

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

My code as a different version, and not the default one. I'm not able to change this version as the default version, unless this error gets resolved. Any idea why this is happening?

解决方案

Seems to be a app engine system glitch. The same code is now working, without any new deployment.

这篇关于Google应用引擎发送邮件服务引发异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆