我想通過使用URL查詢var ['f'] ['t'] ['s'] ['c']發送一封電子郵件。 通過當我啓動在GOOGL應用程序引擎的代碼,我看到我的Python代碼在谷歌應用程序引擎有什麼問題? [發送電子郵件]
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.
我的代碼是
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")
print sendfrom
print reciver
print title
print content
mail.send_mail(
sender = sendfrom,
to = reciver,
subject = title,
body = content
)
我想知道什麼是錯我的代碼?
是的,是的,你這樣做。 – Gleno