Added sendMail as a function

And updated the readme