PHP 管道电子邮件创建反弹

发布于 2024-08-19 14:43:59 字数 89 浏览 3 评论 0原文

我正在将我的 php 电子邮件通过管道传输到 php 脚本,它工作正常并执行,但它发回退回电子邮件,我是否必须返回某些内容或回显某些内容或设置一些标头来阻止此操作?

I am piping my php email to a php script it works fine and executes except it sends back a bounce email, do I have to return something or echo something or set some headers to stop this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

红颜悴 2024-08-26 14:43:59

DirectAdmin是一个控制面板,听起来像MDA(邮件传递代理)正在确定消息已失败。

如果不知道 MDA 是什么以及它是如何配置的,那么几乎不可能建议如何解决此问题,但是需要注意以下几点:

1)MDA 可能根本无法将输出传输到程序 - 您是否检查过您的服务提供商?

2) 您可能错误配置了 MDA 转发 - 尝试将其替换为简单的 'cat >somefile'

3) MDA 可能正在从管道中寻找有效的返回值 - 默认情况下,shell 脚本应该返回零退出状态,如果成功 - 如果失败则为非零值

HTH

C.

DirectAdmin is a control panel, it sounds like the MDA (mail delivery agent) is determining that the message has failed.

Without knowing what the MDA is and how it is configured then its virtually impossible to advise how to fix this, however a coupkle of things to note:

1) the MDA may simply not be able to pipe output to a program - have you checked with your service provider?

2) you may have misconfigured the MDA forward - try replacing it with a simple 'cat >somefile'

3) the MDA may be looking for a valid return value from the pipe - by default, shell scripts shuold return a zero exit status if successful - a non-zero value if they fail

HTH

C.

猫七 2024-08-26 14:43:59

我修复了它,在 SSH 中测试了它,它在某处输出了一个新行,所以我只是将整个脚本放入输出缓冲区中。 <3

I fixed it, tested it in SSH and it was outputting a new line somewhere so I just put the entire script inside an output buffer. <3

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文