added nodemailer functionality