revert mail test code