XWIKI-11457: Unable to send email when the SMTP server requires authentication
* Improve implementation a bit with a Provider + improve tests using GreenMail 1.4.0