Writing an Email Custom Trace Listener