PHP Classes

Bounce Handler: Parse bounced e-mail message reports

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (9)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 61%Total: 8,394 This week: 1All time: 197 This week: 78Up
Version License Categories
bouncehandler 1.0.0BSD LicenseEmail, Text processing


This class can be used to parse bounced message reports.

It parses e-mail messages with multipart report content type formatted according to RFC 1892 and 1894 documents.

If the bounce is not well formed, it also tries to extract some useful information. Exim is supported, partially. Please send bounce messages from your busted MTA, I'll extend the class to support them.

It can extract the the address of the recipient that bounced as well the mail server response status code.

Innovation Award
PHP Programming Innovation award nominee
November 2005
Number 4

Prize: One downloadable copy of Komodo Pro
Sending newsletters or other types of messages to many users is a task that presents certain challenges that need to be handled in an appropriate manner. One of such challenges is to deal with messages that bounce due to temporary or permanent delivery problems.

This class can parse bounced messages and extract the address that is bouncing and determine the severity of the bouncing problem. This allows developers to treat the bounced messages properly, for instance suspending the delivery of further messages, or maybe try again later.

Manuel Lemos
Picture of Chris Fortune
Name: Chris Fortune <contact>
Classes: 1 package by
Country: Canada Canada
Age: 61
All time rank: 30714 in Canada Canada
Week rank: 87 Up3 in Canada Canada Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file bounce_driver.class.php Class chops up the bounce into associative arrays
Accessible without login Plain text file Data RFC1893 error codes, in associative arrays
Accessible without login Plain text file testdriver1.php Example test the code and read the documentation

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:197
This week:78Up
User Ratings User Comments (5)
 All time
Great, thank you.
9 years ago (Antonie Potgieter)
For sure because is outdated this package really need love bu...
9 years ago (Jean-Christophe)
Though it appears to have been last updated on 2010-09-18, th...
13 years ago (brett brewer)
Excellent post.
13 years ago (Thangaraj)
14 years ago (kishore kumar)