adding error reporting for testing in sendEmail.php