added mail config
added sendMail
Fixed the sendMail method to use 'text' rather than 'body'