if( !preg_match('/^[\w.\-\+]+@[\w.\-]+\.[a-z]{2,6}$/i', $mail) ) echo "your email sux!";else { //slanje maila}