我已经寻找了两天的答案,已经找到了这么多,但仍然不能让它工作。
我有一个WHM服务器与cPanel帐户。
我已经在public_html下的/home/用户名/help-system/parse.php下创建了以下php脚本用于测试:
#!/usr/local/bin/php -q
<?php
mail('****@davidslack.co.uk', 'Test email', 'Test email to get an email into the script');
?>我还在cPanel中创建了一个转发器,它将转发到:
|/home/USERNAME/help-system/parse.phpphp脚本和目录的权限为0755 (也尝试了0777)
现在,当我发送一封电子邮件到正确的地址时,我会收到一封回复邮件,如下所示:
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/USERNAME/help-system/parse.php
generated by *********@davidslack.co.uk
local delivery failed
The following text was generated during the delivery attempt:
------ pipe to |/home/USERNAME/help-system/parse.php
generated by *********@davidslack.co.uk ------
Extension '/home/USERNAME/help-system/parse.php' not present.
------ This is a copy of the message, including all the headers. ------我错过了什么?是否有未启用的WHM或cPanel设置?我在上面做了什么愚蠢的事情吗?
任何帮助都将不胜感激。
干杯。
发布于 2013-02-08 19:39:27
电子邮件管道,看起来它不能理解windows换行符!
所以:
现在全部正常工作
https://stackoverflow.com/questions/14757430
复制相似问题