我关注了this tutorial关于如何使用 Laravel 和 Cpanel 传输电子邮件,但我无法在 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 failed
The 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 开始工作。它找到了 artisan ,但没有找到我创建的命令。我使用的网址是
/pathtoartisan/artisan emailparse
- 我删除了破折号。
- 您似乎在 public_html 文件夹中引用 artisan,这不是一个好的做法。
关于php - 使用 cPanel 和 Laravel 将电子邮件传输到程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27362781/