fix mail function in functions.php