english/administrator/components/com_aicontactsafe/models/default.php
// function to validate an email address
function to validate an email address
function to validate an email address
function validateEmail($email_address) {
		$atom = '[a-zA-Z0-9!#$%&\'*+\-\/=?^_`{|}~]+';
		$quoted_string = '"[^"\\\\\r\n]*"';
		$word = "$atom(\.$atom)*";
		$domain = "$atom(\.$atom)+";
		$email_valid = strlen($email_address) < 256 && preg_match("/^($word|$quoted_string)@{$domain}\$/", $email_address);
		return $email_valid;
	}
function validateEmail ( $ email_address ) { $ atom = '[a-zA-Z0-9!#$%&\'*+\-\/=?^_`{|}~]+' ; $ quoted_string = '"[^"\\\\\r\n]*"' ; $ word = " $ atom (\. $ atom )* " ; $ domain = " $ atom (\. $ atom )+ " ; $ email_valid = strlen ( $ email_address ) < 256 && preg_match ( " /^( $ word | $ quoted_string )@ { $ domain } \$ / " , $ email_address ) ; return $ email_valid ; }
function to validate an email address
function to validate an email address
// canceled the Joomla's API test //jimport( 'joomla.mail.helper' ); //$email_valid = JMailHelper::isEmailAddress($email_address);