com.sebtools Build 1 Documentation: Simulated Mailing

Simulated Mailing

You can set Mailer.cfc to not send email and log it instead by creating the Mailer component from a Mailer_Sim.cfc file.

Application.Mailer = CreateObject("component","Mailer_Sim").init(MailServer="",,DataMgr=Application.DataMgr)

After that, all code remains the same. The advantage of this is that you can switch from testing email to actually sending it without changing any code outside of the component instantiation code.