// this can be found in the GenericSendMessage() function.// I want to know when this event is fired so I can do something.// what code should I use to do this? // just before we try to send the message, fire off the compose-send-message event for listeners // such as smime so they can do any pre-security work such as fetching certificates before sending var event = document.createEvent('Events'); event.initEvent('compose-send-message', false, true); document.getElementById("msgcomposeWindow").dispatchEvent(event);