src/email.php
public static function validate($emailaddress) {
	try {
		$message = new \Swift_Message();
		$message->setTo($emailaddress);
	}
	catch (\Swift_RfcComplianceException $e) {
		return false;
	}
	
	return true;
}
public static function validate($emailaddress) {
	try {
		$message = new \Swift_Message();
		$message->setTo($emailaddress);
	}
	catch (\Swift_RfcComplianceException $e) {
		return false;
	}
	
	return true;
}
public static function validate ( $ emailaddress ) { try { $ message = new \ Swift_Message ( ) ; $ message -> setTo ( $ emailaddress ) ; } catch ( \ Swift_RfcComplianceException $ e ) { return false ; } return true ; }
check email addresses validity

@param  string $emailaddress
@return boolean
check email addresses validity