我試圖讓本地主機上的sendmail工作。問題是應用程序引擎有錯誤的sendmail路徑,因爲它會拋出錯誤:/ bin/sh:sendmail:command not foundGoogle App Engine:Sendmail,找不到命令
使用Mac OS X,sendmail的路徑爲:/ usr/sbin/sendmail
有沒有人知道如何改變這個?
..fredrik
我試圖讓本地主機上的sendmail工作。問題是應用程序引擎有錯誤的sendmail路徑,因爲它會拋出錯誤:/ bin/sh:sendmail:command not foundGoogle App Engine:Sendmail,找不到命令
使用Mac OS X,sendmail的路徑爲:/ usr/sbin/sendmail
有沒有人知道如何改變這個?
..fredrik
根據文檔,
The web server will use the sendmail command to send email messages, with your installation's default configuration
如果它使用的NetInfo來確定發送郵件的位置,到sendmail.cf完整路徑被存儲爲「着sendmail的值的.cf」屬性中的‘/位置/ sendmail的’NetInfo中的子目錄,所以儘量設置該屬性的值‘/usr/sbin/sendmail.cf’(不帶引號)
希望它可以幫助
我不知道如何改變它,但符號鏈接將完成這項工作。我有同樣的問題,這解決了它:
sudo ln -s /usr/sbin/sendmail /usr/bin/sendmail
另一種選擇是配置本地AppEngine上運行時use an external SMTP server。
這有助於,謝謝。 – flyingfoxlee 2013-07-03 15:20:11