fre*_*rik 6 google-app-engine sendmail
我想让sendmail在localhost上工作.问题是app引擎有错误的sendmail路径,因为它抛出错误:/ bin/sh:sendmail:command not found
使用Mac OS X,sendmail的路径是:/ usr/sbin/sendmail
有谁知道如何改变这个?
..fredrik
Tur*_*adg 11
I don't know how to change it but a symlink will do the job. I had the same problem and this solved it:
sudo ln -s /usr/sbin/sendmail /usr/bin/sendmail
Run Code Online (Sandbox Code Playgroud)
Another option is to configure your local AppEngine runtime to use an external SMTP server.
根据文档,
Web 服务器将使用 sendmail 命令发送电子邮件,并使用您安装的默认配置
如果它使用 NETINFO 来确定 sendmail 的位置,则 sendmail.cf 的完整路径将存储为 NETINFO 的“/locations/sendmail”子目录中的“sendmail.cf”属性的值,因此请尝试设置将此属性设置为“/usr/sbin/sendmail.cf”(不带引号)
希望能帮助到你
| 归档时间: |
|
| 查看次数: |
2892 次 |
| 最近记录: |