if ($email != "user@domain.com")
but with a wildcard before the @ sign.
Something like if ($email != "*@domain.com")
if ($email != "user@domain.com")
but with a wildcard before the @ sign.
Something like if ($email != "*@domain.com")
Try:
if(preg_match('/^.+@domain\.com$/', $email))