Adding sendMail functionality