English 中文(简体)
Google App Engine: Sendmail, command not found
原标题:

I m trying to get sendmail working on localhost. The problem is that the app engine has det wrong path to sendmail, since it throws the error: /bin/sh: sendmail: command not found

Using Mac OS X, the path to sendmail is: /usr/sbin/sendmail

Does anyone know how to change this?

..fredrik

问题回答

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

Another option is to configure your local AppEngine runtime to use an external SMTP server.

According to the documentation,

The web server will use the sendmail command to send email messages, with your installation s default configuration

If it uses NETINFO to determine the location of sendmail, the full path to sendmail.cf is stored as the value of the "sendmail.cf" property in the "/locations/sendmail" subdirectory of NETINFO, so try to set the value of this property to "/usr/sbin/sendmail.cf" (without the quotes)

Hope it helps





相关问题
How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

gqlQuery returns object, want list of keys

Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...

sorl.thumbnail : thumbnail is not a valid tag library?

I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...

热门标签