Anyone who has tried to validate a user input using Zend_Validate_EmailAddress will find that there are a LOT of error messages returned – one for each problem with the email address:
- Invalid format
- Invalid hostname
- Invalid mx record
- and 5 more
This class will replaces all the error messages with one message.
_messages = array(self::INVALID => "Please enter a valid email address"); } return $response; } }