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: 419 All time: 6,404 This week: 455Up
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
Age: 41
All time rank: 94865 in Brazil Brazil
Week rank: 200 Up15 in Brazil Brazil Up

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

  Files folder image Files (13)  /  css  
File Role Description
  Accessible without login Plain text file email_log.css Data CSS

  Files folder image Files (13)  /  data  
File Role Description
  Accessible without login Plain text file 11-10-2010.db Data Sample Database

  Files folder image Files (13)  /  img  
File Role Description
  Accessible without login Image file ld.gif Icon Loading Spinner

  Files folder image Files (13)  /  js  
File Role Description
  Accessible without login Plain text file email_log.js Aux. admin js
  Accessible without login Plain text file jquery-1.4.2.js Data admin support scripts
  Accessible without login Plain text file jquery.json-2.2.js Data admin support scripts
  Accessible without login Plain text file wsa_encoders.js Data admin support scripts

  Files folder image Files (13)  /  templates  
File Role Description
  Accessible without login Plain text file email_log.html Data customizable template

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:419
This week:0
All time:6,404
This week:455Up
User Comments (1)
Thus is a very good class ! lool
13 years ago (José Filipe Lopes Santos)
80%StarStarStarStarStar