I created a user event attached to message that do...
# suitescript
m
I created a user event attached to message that does logging before every email is sent (in the afterSubmit()) action. This works fine for emails sent through the UI, but ones triggered by scripting don't seem to show up.