Added the possibility to provide nodemailer options while keeping the API backwards compatible.

Allows to send attachments for instance.