XWIKI-10510: Add ability to send emails from a Template document containing a XWiki.Mail xobject

Add internationalization support
Could you check how XWiki.Mail is used currently in the mail sender plugin?