Plugin development: attach to send mail event