com.sebtools Build 12 Documentation: Logging


Mailer.cfc allows you to log email that it sends. Although Mailer.cfc does not normally require any other components, but logging does require the use of DataMgr. This means that the logging will work with any database supported by DataMgr.

To log email, just call the startLogging() method and pass in the DataMgr component as the first argument - optionally passing in the name of the table to use for logging (which Mailer.cfc will create via DataMgr).

If you decide to stop logging email, just call stopLogging().