PHP 管道电子邮件创建反弹
我正在将我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
我修复了它,在 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