added the method to the button sendEmail