php - 使用 cPanel 和 Laravel 将电子邮件传输到程序

标签 php email laravel cpanel piping

我关注了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
  1. 我删除了破折号。
  2. 您似乎在 public_html 文件夹中引用 artisan,这不是一个好的做法。

关于php - 使用 cPanel 和 Laravel 将电子邮件传输到程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27362781/

相关文章:

php - 根据给定日期范围检索表

php - SQL JOIN 多个 ID

bash - 电子邮件警报和 ping 脚本

php - 使用 Amazon SES sendRawEmail 进行电子邮件编码

c# - 我如何告诉我的应用程序发送电子邮件?

javascript - 如何在 Vue.js 中从 JSON 数据创建 select 元素?

mysql - Laravel updateOrCreate 自增数据库

php - 如何使用PHP限制文件上传?

php - 如何在 laravel 中获取 mysql 表的最后一行值?

mysql - 如何在 DB::select(query) 上使用分页 - Laravel