PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-11-15 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 401 All time: 6,036 This week: 1,256Up
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: 32
All time rank: 94568 in Brazil Brazil
Week rank: 412 Up30 in Brazil Brazil Up

Details provided by the author  
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  
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  /  css  
File Role Description
  Accessible without login Plain text file email_log.css Data CSS

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

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

  Files folder image Files  /  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  /  templates  
File Role Description
  Accessible without login Plain text file email_log.html Data customizable template

 Version Control Unique User Downloads Download Rankings  
 0%Total:401All time:6,036
 This week:0This week:1,256Up
 User Comments (1)  
 
Thus is a very good class ! lool
4 years ago (Josť Filipe Lopes Santos)
80%StarStarStarStarStar