GAE dev服务器中的Sendmail不显示电子邮件正文

时间:2013-06-28 11:32:09

标签: eclipse google-app-engine

在开发服务器上本地工作时,GAE不会发送任何电子邮件。除非使用以下命令运行它:

dev_appserver.py --enable_sendmail myapp

这将依赖于本地sendmail进行设置。

我现在正在使用Ubuntu一段时间,我从未遇到过如此难以设置的东西。 我遇到了这个solution和其他5个教程。 mail.log显示该电子邮件已被接受并发送出去,但谷歌超时了。

Jun 28 12:13:38 tp sm-mta[15964]: r5SAnXFV014925: to=<kave@gmail.com>, ctladdr=<kave@localhost.localdomain> (1000/1000), delay=00:24:05, xdelay=00:00:00, mailer=esmtp, pri=210342, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com

我很乐意放弃并依赖日志文件。但命令行输出不显示电子邮件正文:

INFO     2013-06-28 11:17:40,146 mail_stub.py:140] MailService.Send
  From: admin@mydomain.com
  To: kave@gmail.com
  Subject: Invitation to join xxx
  Body:
    Content-type: text/plain
    Data length: 347

太令人沮丧了。有什么想法吗?

更新 我试图用VM参数运行它:

enter image description here

但是我收到此错误消息: enter image description here

1 个答案:

答案 0 :(得分:1)

几周前我遇到了同样的问题。我在运行DevAppServer时最终将以下VM参数添加到eclipse:

  

-Dmail.log_mail_level =警告-Dmail.log_mail_body = true