added comment to sendMail func