PHP Classes

PHPMailer Bounce Mail Handler: Handle bounced messages in a IMAP mailbox

Recommend this page to a friend!
  Info   View files Example   View files View files (275)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-10-21 (8 days ago) RSS 2.0 feedStarStarStarStar 71%Total: 388 This week: 6All time: 6,628 This week: 135Up
Version License PHP version Categories
phpmailer-bmh 1.0.11GNU General Publi...5.3Email, PHP 5
Collaborate with this project Author

PHPMailer-BMH - github.com

Description

This package can handle bounced messages in a IMAP mailbox.

It accesses a mailbox via IMAP and retrieves the messages to check if they match one of the several possible rules that define what is a bounced message.

For each matched bounced message it finds, it may invoke a given callback function.

This is package is based on original written by instaclick which in turn is based on WorxWare's PHPMailer-BMH package.

Recommendations
Picture of Lars Moelleken
  Performance   Level  
Name: Lars Moelleken <contact>
Classes: 25 packages by
Country: Germany Germany
Innovation award
Innovation award
Nominee: 11x

Winner: 1x

Details

Build Status codecov.io Scrutinizer Code Quality Codacy Badge Latest Stable Version Total Downloads Latest Unstable Version License

  • PHP 7.0+ Support
  • Composer & PSR-0 Support
  • PHPUnit testing via Travis CI (TODO: more tests needed)
  • PHP-Quality testing via SensioLabsInsight (TODO: more fixes needed)

Bounce Mail Handler

WARNING: This is a Extended-Fork of instaclick's PHPMailer-BMH what is on the other hand a Fork of WorxWare's PHPMailer-BMH.

Installation

The recommended installation way is through Composer.

$ composer require voku/bounce-mail-handler

Examples

github.com/voku/PHPMailer-BMH/tree/master/examples

  Files folder image Files  
File Role Description
Files folder imageexamples (4 files)
Files folder imagesrc (1 directory)
Files folder imagetests (5 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .scrutinizer.yml Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file phpcs.php_cs Example Example script
Accessible without login Plain text file phpstan.neon Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file callback_csv.php Aux. Auxiliary script
  Accessible without login Plain text file callback_database.php Aux. Auxiliary script
  Accessible without login Plain text file callback_echo.php Aux. Auxiliary script
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files  /  src  
File Role Description
Files folder imageBounceMailHandler (2 files)

  Files folder image Files  /  src  /  BounceMailHandler  
File Role Description
  Plain text file BounceMailHandler.php Class Class source
  Accessible without login Plain text file phpmailer-bmh_rules.php Conf. Configuration script

  Files folder image Files  /  tests  
File Role Description
Files folder imagefixtures (1 file, 7 directories)
Files folder imageresources (1 file, 1 directory)
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Plain text file FullExampleDemo.php Class Class source
  Plain text file FullExampleDemoTest.php Class Class source
  Plain text file MultipleMessageTest.php Class Class source
  Plain text file SingleMessageTest.php Class Class source

  Files folder image Files  /  tests  /  fixtures  
File Role Description
Files folder imagebounce-email (37 files)
Files folder imagebouncehammer (3 files)
Files folder imageinstaclick (5 files)
Files folder imagemail-deliverystatus-bounceparser (106 files)
Files folder imagenode-baunsu (14 files)
Files folder imagePHP-Bounce-Handler (73 files)
Files folder imagetmail_bouncer (8 files)
  Accessible without login Plain text file README Doc. Documentation

  Files folder image Files  /  tests  /  fixtures  /  bounce-email  
File Role Description
  Accessible without login Plain text file tt_1234175799.txt Doc. Documentation
  Accessible without login Plain text file tt_1234177688.txt Doc. Documentation
  Accessible without login Plain text file tt_1234210655.txt Doc. Documentation
  Accessible without login Plain text file tt_1234210666.txt Doc. Documentation
  Accessible without login Plain text file tt_1234211024.txt Doc. Documentation
  Accessible without login Plain text file tt_1234211357.txt Doc. Documentation
  Accessible without login Plain text file tt_1234211929.txt Doc. Documentation
  Accessible without login Plain text file tt_1234211931.txt Doc. Documentation
  Accessible without login Plain text file tt_1234211932.txt Doc. Documentation
  Accessible without login Plain text file tt_1234241664.txt Doc. Documentation
  Accessible without login Plain text file tt_1234241665.txt Doc. Documentation
  Accessible without login Plain text file tt_1234285532.txt Doc. Documentation
  Accessible without login Plain text file tt_1234285668.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_01.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_02.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_03.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_04.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_05.eml Data Auxiliary data
  Accessible without login Plain text file tt_bounce_05.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_06.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_07.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_08.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_09.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_10.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_11.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_12_soft.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_13.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_14.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_15.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_16.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_17.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_18.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_19.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_20.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_21.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_22.txt Doc. Documentation
  Accessible without login Plain text file tt_bounce_23.txt Doc. Documentation

  Files folder image Files  /  tests  /  fixtures  /  bouncehammer  
File Role Description
  Accessible without login Plain text file cannot-parse.eml Data Auxiliary data
  Accessible without login Plain text file double-messages.eml Data Auxiliary data
  Accessible without login Plain text file single-message.eml Data Auxiliary data

  Files folder image Files  /  tests  /  fixtures  /  instaclick  
File Role Description
  Accessible without login Plain text file dotster-430.eml Data Auxiliary data
  Accessible without login Plain text file google-550.eml Data Auxiliary data
  Accessible without login Plain text file google-dns.eml Data Auxiliary data
  Accessible without login Plain text file google-permanent-failure.eml Data Auxiliary data
  Accessible without login Plain text file google-temporary-failure.eml Data Auxiliary data

  Files folder image Files  /  tests  /  fixtures  /  mail-deliverystatus-bounceparser  
File Role Description
  Accessible without login Plain text file aol-senderblock.msg Data Auxiliary data
  Accessible without login Plain text file aol-vacation.msg Data Auxiliary data
  Accessible without login Plain text file aol.attachment.msg Data Auxiliary data
  Accessible without login Plain text file aol.unknown.msg Data Auxiliary data
  Accessible without login Plain text file att-via-sendmail.unknown.msg Data Auxiliary data
  Accessible without login Plain text file autoreply.msg Data Auxiliary data
  Accessible without login Plain text file badrcptto.msg Data Auxiliary data
  Accessible without login Plain text file bluebottle.msg Data Auxiliary data
  Accessible without login Plain text file boxbe-cr.msg Data Auxiliary data
  Accessible without login Plain text file boxbe-cr2.msg Data Auxiliary data
  Accessible without login Plain text file cam-unknown.msg Data Auxiliary data
  Accessible without login Plain text file comcast-via-sendmail.unknown.msg Data Auxiliary data
  Accessible without login Plain text file cox-via-sendmail.unknown.msg Data Auxiliary data
  Accessible without login Plain text file deactivated-mailbox.msg Data Auxiliary data
  Accessible without login Plain text file doesnotexist.msg Data Auxiliary data
  Accessible without login Plain text file doesnotexist2.msg Data Auxiliary data
  Accessible without login Plain text file domino.unknown.msg Data Auxiliary data
  Accessible without login Plain text file exchange.unknown.msg Data Auxiliary data
  Accessible without login Plain text file generic-postfix-via-sendmail.unknown.msg Data Auxiliary data
  Accessible without login Plain text file gmail-via-sendmail.unknown.msg Data Auxiliary data
  Accessible without login Plain text file hotmail-via-sendmail.unknown.msg Data Auxiliary data
  Accessible without login Plain text file iis-multiple-bounce.msg Data Auxiliary data
  Accessible without login Plain text file junkemailfilter.msg Data Auxiliary data
  Accessible without login Plain text file mailbox-unknown.msg Data Auxiliary data
  Accessible without login Plain text file malformed-dns.msg Data Auxiliary data
  Accessible without login Plain text file me-user-unknown.msg Data Auxiliary data
  Accessible without login Plain text file message-too-large-2.msg Data Auxiliary data
  Accessible without login Plain text file message-too-large-3.msg Data Auxiliary data
  Accessible without login Plain text file message-too-large.msg Data Auxiliary data
  Accessible without login Plain text file misidentified-recipient.msg Data Auxiliary data
  Accessible without login Plain text file msn-via-sendmail.unknown.msg Data Auxiliary data
  Accessible without login Plain text file no-message-collected.msg Data Auxiliary data
  Accessible without login Plain text file no-such-domain.msg Data Auxiliary data
  Accessible without login Plain text file nomailbox.msg Data Auxiliary data
  Accessible without login Plain text file non-autoreply.msg Data Auxiliary data
  Accessible without login Plain text file not-a-relay.msg Data Auxiliary data
  Accessible without login Plain text file novell-with-rhs.msg Data Auxiliary data
  Accessible without login Plain text file polish-autoreply.msg Data Auxiliary data
  Accessible without login Plain text file polish-unknown.msg Data Auxiliary data
  Accessible without login Plain text file postfix-host-unknown.msg Data Auxiliary data
  Accessible without login Plain text file postfix-malformed.msg Data Auxiliary data
  Accessible without login Plain text file postfix-orig.msg Data Auxiliary data
  Accessible without login Plain text file postfix-smtp-550.msg Data Auxiliary data
  Accessible without login Plain text file postfix.msg Data Auxiliary data
  Accessible without login Plain text file qmail.unknown.msg Data Auxiliary data
  Accessible without login Plain text file quota-2.msg Data Auxiliary data
  Accessible without login Plain text file quota-4.msg Data Auxiliary data
  Accessible without login Plain text file quota-5.msg Data Auxiliary data
  Accessible without login Plain text file quota-6.msg Data Auxiliary data
  Accessible without login Plain text file quota.msg Data Auxiliary data
  Accessible without login Plain text file rcpt-dne.msg Data Auxiliary data
  Accessible without login Plain text file rcpthosts.msg Data Auxiliary data
  Accessible without login Plain text file relaying-denied.msg Data Auxiliary data
  Accessible without login Plain text file sendmail-host-unknown.msg Data Auxiliary data
  Accessible without login Plain text file spam-bogus-email-in-report.msg Data Auxiliary data
  Accessible without login Plain text file spam-lots-of-bogus-addresses.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection-uribl.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection10.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection11.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection12.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection13.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection14.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection15.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection16.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection17.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection18.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection19.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection2.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection20.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection21.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection22.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection23.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection24.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection25.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection26.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection27.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection3.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection4.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection5.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection6.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection7.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection8.msg Data Auxiliary data
  Accessible without login Plain text file spam-rejection9.msg Data Auxiliary data
  Accessible without login Plain text file spam-with-badly-parsed-email.msg Data Auxiliary data
  Accessible without login Plain text file spam-with-image.msg Data Auxiliary data
  Accessible without login Plain text file spamassassin.msg Data Auxiliary data
  Accessible without login Plain text file spambouncer.msg Data Auxiliary data
  Accessible without login Plain text file surfcontrol-extra-newline.msg Data Auxiliary data
  Accessible without login Plain text file user-unknown-disabled.msg Data Auxiliary data
  Accessible without login Plain text file user-unknown-dne.msg Data Auxiliary data
  Accessible without login Plain text file user-unknown-not-active.msg Data Auxiliary data
  Accessible without login Plain text file user-unknown-not.msg Data Auxiliary data
  Accessible without login Plain text file user-unknown-polish.msg Data Auxiliary data
  Accessible without login Plain text file virus-caused-multiple-weird-reports.msg Data Auxiliary data
  Accessible without login Plain text file warning-1.msg Data Auxiliary data
  Accessible without login Plain text file warning-2.msg Data Auxiliary data
  Accessible without login Plain text file warning-3.msg Data Auxiliary data
  Accessible without login Plain text file warning-4.msg Data Auxiliary data
  Accessible without login Plain text file warning-5.msg Data Auxiliary data
  Accessible without login Plain text file warning-6.msg Data Auxiliary data
  Accessible without login Plain text file warning-7.msg Data Auxiliary data
  Accessible without login Plain text file warning-8.msg Data Auxiliary data
  Accessible without login Plain text file whitelist.msg Data Auxiliary data
  Accessible without login Plain text file yahoo-user-unknown.msg Data Auxiliary data
  Accessible without login Plain text file yahoo-via-sendmail.unknown.msg Data Auxiliary data

  Files folder image Files  /  tests  /  fixtures  /  node-baunsu  
File Role Description
  Accessible without login Plain text file auto_earthlink.txt Doc. Documentation
  Accessible without login Plain text file bounce_aol.txt Doc. Documentation
  Accessible without login Plain text file bounce_att.txt Doc. Documentation
  Accessible without login Plain text file bounce_charter.txt Doc. Documentation
  Accessible without login Plain text file bounce_cox.txt Doc. Documentation
  Accessible without login Plain text file bounce_earthlink.txt Doc. Documentation
  Accessible without login Plain text file bounce_exchange.txt Doc. Documentation
  Accessible without login Plain text file bounce_gmail.txt Doc. Documentation
  Accessible without login Plain text file bounce_hotmail.txt Doc. Documentation
  Accessible without login Plain text file bounce_me.txt Doc. Documentation
  Accessible without login Plain text file bounce_postfix.txt Doc. Documentation
  Accessible without login Plain text file bounce_spam.txt Doc. Documentation
  Accessible without login Plain text file bounce_yahoo.txt Doc. Documentation
  Accessible without login Plain text file encoded_spam.txt Doc. Documentation

  Files folder image Files  /  tests  /  fixtures  /  PHP-Bounce-Handler  
File Role Description
  Accessible without login Plain text file 1.eml Data Auxiliary data
  Accessible without login Plain text file 10.eml Data Auxiliary data
  Accessible without login Plain text file 11.eml Data Auxiliary data
  Accessible without login Plain text file 12.eml Data Auxiliary data
  Accessible without login Plain text file 13.eml Data Auxiliary data
  Accessible without login Plain text file 14.eml Data Auxiliary data
  Accessible without login Plain text file 15.eml Data Auxiliary data
  Accessible without login Plain text file 16.eml Data Auxiliary data
  Accessible without login Plain text file 17.eml Data Auxiliary data
  Accessible without login Plain text file 18.eml Data Auxiliary data
  Accessible without login Plain text file 19.eml Data Auxiliary data
  Accessible without login Plain text file 2.eml Data Auxiliary data
  Accessible without login Plain text file 20.eml Data Auxiliary data
  Accessible without login Plain text file 21.eml Data Auxiliary data
  Accessible without login Plain text file 22.eml Data Auxiliary data
  Accessible without login Plain text file 23.eml Data Auxiliary data
  Accessible without login Plain text file 24.eml Data Auxiliary data
  Accessible without login Plain text file 25.eml Data Auxiliary data
  Accessible without login Plain text file 26.eml Data Auxiliary data
  Accessible without login Plain text file 27.eml Data Auxiliary data
  Accessible without login Plain text file 28.eml Data Auxiliary data
  Accessible without login Plain text file 29.eml Data Auxiliary data
  Accessible without login Plain text file 3.eml Data Auxiliary data
  Accessible without login Plain text file 30.eml Data Auxiliary data
  Accessible without login Plain text file 31.eml Data Auxiliary data
  Accessible without login Plain text file 32.eml Data Auxiliary data
  Accessible without login Plain text file 33.eml Data Auxiliary data
  Accessible without login Plain text file 34.eml Data Auxiliary data
  Accessible without login Plain text file 35.eml Data Auxiliary data
  Accessible without login Plain text file 36.eml Data Auxiliary data
  Accessible without login Plain text file 37.eml Data Auxiliary data
  Accessible without login Plain text file 38.eml Data Auxiliary data
  Accessible without login Plain text file 39.eml Data Auxiliary data
  Accessible without login Plain text file 4.eml Data Auxiliary data
  Accessible without login Plain text file 40.eml Data Auxiliary data
  Accessible without login Plain text file 41.eml Data Auxiliary data
  Accessible without login Plain text file 42.eml Data Auxiliary data
  Accessible without login Plain text file 43.eml Data Auxiliary data
  Accessible without login Plain text file 44.eml Data Auxiliary data
  Accessible without login Plain text file 45.eml Data Auxiliary data
  Accessible without login Plain text file 46.eml Data Auxiliary data
  Accessible without login Plain text file 47.eml Data Auxiliary data
  Accessible without login Plain text file 48.eml Data Auxiliary data
  Accessible without login Plain text file 49.eml Data Auxiliary data
  Accessible without login Plain text file 5.1.1.eml Data Auxiliary data
  Accessible without login Plain text file 5.eml Data Auxiliary data
  Accessible without login Plain text file 50.eml Data Auxiliary data
  Accessible without login Plain text file 51.eml Data Auxiliary data
  Accessible without login Plain text file 52.eml Data Auxiliary data
  Accessible without login Plain text file 53.eml Data Auxiliary data
  Accessible without login Plain text file 54.eml Data Auxiliary data
  Accessible without login Plain text file 55.eml Data Auxiliary data
  Accessible without login Plain text file 56.eml Data Auxiliary data
  Accessible without login Plain text file 57.eml Data Auxiliary data
  Accessible without login Plain text file 58.eml Data Auxiliary data
  Accessible without login Plain text file 59.eml Data Auxiliary data
  Accessible without login Plain text file 6.eml Data Auxiliary data
  Accessible without login Plain text file 60.eml Data Auxiliary data
  Accessible without login Plain text file 7.eml Data Auxiliary data
  Accessible without login Plain text file 8.eml Data Auxiliary data
  Accessible without login Plain text file 9.eml Data Auxiliary data
  Accessible without login Plain text file arf1.txt Doc. Documentation
  Accessible without login Plain text file arf2.txt Doc. Documentation
  Accessible without login Plain text file arf3.txt Doc. Documentation
  Accessible without login Plain text file arf4.txt Doc. Documentation
  Accessible without login Plain text file arf5.txt Doc. Documentation
  Accessible without login Plain text file arf6.txt Doc. Documentation
  Accessible without login Plain text file exchange1.eml Data Auxiliary data
  Accessible without login Plain text file exchange2.eml Data Auxiliary data
  Accessible without login Plain text file exchange3.eml Data Auxiliary data
  Accessible without login Plain text file hotmailbounce.txt Doc. Documentation
  Accessible without login Plain text file testfile.eml Data Auxiliary data
  Accessible without login Plain text file unsubscribe.txt Doc. Documentation

  Files folder image Files  /  tests  /  fixtures  /  tmail_bouncer  
File Role Description
  Accessible without login Plain text file aol.eml Data Auxiliary data
  Accessible without login Plain text file box_full.eml Data Auxiliary data
  Accessible without login Plain text file legit_multipart.eml Data Auxiliary data
  Accessible without login Plain text file legit_with_quota.eml Data Auxiliary data
  Accessible without login Plain text file out_of_office.eml Data Auxiliary data
  Accessible without login Plain text file verizon.eml Data Auxiliary data
  Accessible without login Plain text file yahoo.eml Data Auxiliary data
  Accessible without login Plain text file yahoo_legit.eml Data Auxiliary data

  Files folder image Files  /  tests  /  resources  
File Role Description
Files folder imageMaildir (5 files, 1 directory)
  Accessible without login Plain text file dovecotSsl.sh Data Auxiliary data

  Files folder image Files  /  tests  /  resources  /  Maildir  
File Role Description
Files folder image.Sent (2 files)
  Accessible without login Plain text file dovecot-keywords Data Auxiliary data
  Accessible without login Plain text file dovecot-uidlist Data Auxiliary data
  Accessible without login Plain text file dovecot-uidvalidity Data Auxiliary data
  Accessible without login Plain text file dovecot-uidvalidity.52a514a7 Data Auxiliary data
  Accessible without login Plain text file subscriptions Data Auxiliary data

  Files folder image Files  /  tests  /  resources  /  Maildir  /  .Sent  
File Role Description
  Accessible without login Plain text file dovecot-uidlist Data Auxiliary data
  Accessible without login Plain text file maildirfolder Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:388
This week:6
All time:6,628
This week:135Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:71%StarStarStarStar
Rank:317
  
For more information send a message to info at phpclasses dot org.