This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also
Use any of these functions
Validates an email address using a regular expression and optionally makes a DNS request to check the domain.
- (string) (required) The email address you would like to validate.
- Default: None
- (boolean) (optional) Whether or not to make a DNS request to validate the domain.
- Default: true
- True on success, false on failure.
<?php validate_email($email, $check_domain); ?>