0

I need to know whether my mail is fail to deliver:

I have set the imap setting for my mail box.

when i use zend to retrieve all mail message, how can i detect the mail is bounce message?

if i use "failure" title to filter, other mail that is not related will also be select as bounce mail?

Also, the bounce mail box must be the sender mail box , it is set by the mail server , no matter i add header in the message, that mean i can not change to another mail box to receive bounce mail?

Thank you.

user782104
  • 12,597
  • 53
  • 165
  • 300
  • check out http://stackoverflow.com/questions/9137370/how-to-manage-emails-bouncing-and-errors-in-php/9137712#9137712 and http://stackoverflow.com/questions/9436584/retrieve-of-the-bounce-mail-in-php/9440480#9440480 They may help a bit. – drew010 Mar 02 '12 at 05:50
  • I am going to take a look at it. i am looking for standard bounce mail format – user782104 Mar 02 '12 at 06:24
  • see the references in the 3rd paragraph of the first link. `Once you have the message, there are a number of indicators you can use to try to flag a message as a bounch. First, see the Wikipedia article about Non Delivery Reports, specifically Format and RFC 6522 - The Multipart/Report Media Type for the Reporting of Mail System Administrative Messages. You can also check for common headers in the message such as X-Failed-Recipients or Diagnostic-Code.` – drew010 Mar 02 '12 at 06:25
  • but in my two mail box bounce message example, there is nothing like diagnostic code/ failed recipients ? – user782104 Mar 02 '12 at 06:29
  • Well technically that isn't a bounce message, it is just a delivery report saying the message has been delayed but it hasn't given up yet. If after 2 days it still hasn't gone through, then you will receive a non-delivery report giving a permanent error on why the message couldn't be delivered. In this case it just appears the remote mail server is misconfigured. It may be fixed soon and then the message will be delivered sometime after it comes online. – drew010 Mar 02 '12 at 06:36
  • It seems i have mix up two thing (bounce and delivery report) then where can i get bounce message if i can not access to the mail server? (eg, google mail) Thank you – user782104 Mar 02 '12 at 06:41

0 Answers0