Adding code for sending email + testingpage