The following code shows how to validate an email with Joomla API
1 2 3 4 5 6 |
jimport('joomla.mail.helper'); $error = false; if (! $email || ! JMailHelper::isEmailAddress($email)) { $error = JText::sprintf('Email Corect', $email); JError::raiseWarning(0, $error); } |





