allow additional data for mails
Some fixes and MailProvider module jsdoc