开发者

Zend Mail - bouncing mails not returning to the specified "Return-Path"

开发者 https://www.devze.com 2022-12-18 10:39 出处:网络
i\'m working on a simple mail list app in PHP using Zend Mail. The idea is that all mail that bounce is redirected to a script which processes them and a report is generated. The script is running ok

i'm working on a simple mail list app in PHP using Zend Mail. The idea is that all mail that bounce is redirected to a script which processes them and a report is generated. The script is running ok in direct tests, but I've testing it with fake mail address to test the mail list app, and it appears that the mail is not being redirected to the correct email address. Zend开发者_Python百科 Mail provides the setReturnPath method to set the "Return-Path" header, it's ok to use this header for this purpose?

Thanks


http://framework.zend.com/manual/en/zend.mail.additional-headers.html


I don't know how you're submitting your message to your mail server - mail(), calling sendmail or via SMTP, but you may want to set a 'Sender' header rather than 'Return-Path' since the return path is normally set by your local mail server, and it will use a Sender header to generate it if you provide one.

0

精彩评论

暂无评论...
验证码 换一张
取 消