PHP Classes


Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Rodrigo Moraes  >  EMail Logger  >  README  >  Download  
Role: Documentation
Content type: text/plain
Description: Read me
Class: EMail Logger
Store e-mail messages information in log files
Author: By
Last change:
Date: 5 years ago
Size: 1,054 bytes


Class file image Download
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