google app engine 发送邮件的问题

ellck 2011-07-27 02:54:15
想通过接受 URL 中的 GET 变量中的发送人,收件人,主题,内容,然后发送邮件

import cgi
from google.appengine.api import mail

form = cgi.FieldStorage()

sendfrom = form.getvalue("f")
reciver = form.getvalue("t")
title = form.getvalue("s")
content = form.getvalue("c")

mail.send_mail(
sender = sendfrom,
to = reciver,
subject = title,
body = content
)

但是在 GAE 运行的时候却会出现
Error: Server Error

The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.

这个是什么问题?刚开始学 python
...全文
177 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Waistcoat22 2011-07-27
  • 打赏
  • 举报
回复
你的使用google app engine的框架代码啊

建议你看下google app engine的smaple程序和文档先

37,718

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧