vlibMimeMail

vLIB logo

4.19. validateEmail()

Function Description
  validateEmail (string address)

This function validates the email address 'address' and returns true on validation success or false on failure.

Example

   $mail->validateEmail('[email protected]'); // returns true
   $mail->validateEmail('to [email protected]'); // returns false