added php mail function and badCap.php