XWIKI-11521: Send 3 new events for the email feature, mail ready to be s...

...ent, mail sent, mail error
And no the goal is not to use a different mechanism form listening for events but a different mechanism for reporting mail sending errors... (actually not a new one since there's a current one ;)).