I am unable to make Zend_Validate_EmailAddress show only 1 error message when the user enter invalid email address. The code is
$email = new Zend_Form_Elemen
you have to write validator like this...
$email->addValidator(
'EmailAddress',
true,
array( 'messages' => array( 'emailAddressInvalidFormat' => "Email Address is Not Valid... !
", "emailAddressInvalidHostname"=>"Email Address is Not Valid... !
", "hostnameUnknownTld"=>"Email Address is Not Valid... !
","hostnameLocalNameNotAllowed"=>"Email Address is Not Valid... !
") )
);