Put an Email address into $email that needs to be validated. \Drupal::service('email.validator')->isValid($email); Tags All Drupal