__mail($test_post)){ echo 'E-mail is not valid'; } $test_post = 'mephp.net'; if(!$variable->__mail($test_post)){ echo 'E-mail is not valid'; } ?>