added attempt at mail and improved efficency in testDate.php