php – 使用cPanel和Laravel管理电子邮件到程序
作者:互联网
关于如何使用Laravel和Cpanel管道电子邮件,我已经关注了this tutorial但是我无法在cPanel中设置forwared.我尝试使用每个可用选项:
public_html/artisan --env=local email-parse
/usr/bin/php -q /var/public_html/artisan --env=local email-parse
/usr/bin/php -q public_html/artisan --env=local email-parse
我不知道还能在这里做些什么,所以这就是我在这里问的原因.
我得到的错误是
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:pipe to |/home/xxxx/public_html/artisan –env=local email-parse
generated by todo@yyyyy.com
local delivery failedThe following text was generated during the delivery attempt:
—— pipe to |/home/xxxx/public_html/artisan –env=local email-parse
generated by todo@yyyyy.com ——Could not exec ‘/home/xxxx/public_html/artisan’
解决方法:
我面临着类似的问题,但就我而言,至少我让Artisan工作了.它找到了工匠但却找不到我创建的命令.我使用的网址是
/pathtoartisan/artisan emailparse
>我删除了破折号.
>看来你在public_html文件夹中引用了工匠,这不是一个好习惯.
标签:php,laravel,email,cpanel,piping 来源: https://codeday.me/bug/20190703/1362221.html