// make the count to the numbers you want to identify! $count_array=array(1000, 2000, 3000, 5000); if(in_array($user[posts], $count_array)) { do the email! }