valid_email_address($mail)
Verifies the syntax of the given email address.
string $mail: A string containing an email address.
bool TRUE if the address is in a valid format.
in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal::service('email.validator')->isValid().
function valid_email_address($mail) { return \Drupal::service('email.validator')->isValid($mail); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!common.inc/function/valid_email_address/8.1.x