Posted By

mail_json on 07/16/06


Tagged

email Bounced


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

nicolaspar
trickychicken
stevevance
hudge


Get Bounced Emails


 / Published in: PHP
 

  1. /*
  2. php mail() doesnt know about bounced emails simply because it doesnt
  3. >reach it. there's no callback that allows you to register for bounced
  4. >emails. the email is received by your smtp server and is redirected
  5. >to the appropriate account (depending on the configuration)
  6.  
  7. you can get bounces and replies by adding some headers:
  8. */
  9.  
  10.  
  11. $mail_header .= "Return-Receipt-To:\"RETURNRECEIPTyourdomain.org\" \n";
  12. $mail_header .= "Return-Path: \"BOUNCEyourdomain.org\" \n";
  13.  
  14. /*
  15. and then off course read out these addresses!
  16. */

Report this snippet  

You need to login to post a comment.