uncommenting the sending email part of the code