PHP Classes

EMail Logger: Store e-mail messages information in log files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 420 All time: 6,397 This week: 60Up
Version License PHP version Categories
email-log 1BSD License5.0Email, PHP 5, Logging
Description 

Author

This class can be use to store e-mail messages information in log files.

It can append to a given log file information about e-mail messages. It includes the e-mail sender, recipient, subject, message body and delivery date.

The class can also retrieve e-mail message information previously stored in log files and serve it for download in JSON format.

Picture of Rodrigo Moraes
Name: Rodrigo Moraes <contact>
Classes: 3 packages by
Country: Brazil Brazil

 

Details

E-Mail Log ________________________________________________________________________________ This is a generic email logger, it's useful to log all outcomming emails from your application, not only that, but this also logs everything, even if the email failed to be sent, it will be there. In my case, i wrote this to satisfy a customer which had problems with his email. His emails were failing at random due a third party bad mail server, so this suited him pretty well. This class also don't need a database, i did this on propouse to avoid adding more complexity to this system. I wrote a simple file based system to database things base64 encoded. This is not intended for large scale env, unless you have a lot of memory. I also added a customizable admin (manager.php) as well; And a database filler (filler.php); Usage Example: $el = new EMail_Log("/path/to/db/"); $el->add($from, $to, $subject, $body); ________________________________________________________________________________ (c) Rodrigo Moraes Orph - 2010

  Files folder image Files (13)  
File Role Description
Files folder imagecss (1 file)
Files folder imagedata (1 file)
Files folder imageimg (1 file)
Files folder imagejs (4 files)
Files folder imagetemplates (1 file)
Plain text file email_log.php Class main class
Accessible without login Plain text file manager.php Example admin
Accessible without login Plain text file README Doc. Read me
Plain text file wsa_utf8_conversor.php Class Support Class
Accessible without login Plain text file filler.php Example a database filler

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:420
This week:0
All time:6,397
This week:60Up
User Comments (1)
Thus is a very good class ! lool
14 years ago (José Filipe Lopes Santos)
80%StarStarStarStarStar