title: zend form email validation
body: <p>I have the following code to generate an input field for user's email address</p>
  
  
  
  <pre><code>$email = new Zend_Form_Element_Text('email');
  $email-&gt;setLabel('Email:')
      -&gt;addFilters(array('StringTrim', 'StripTags'))
      -&gt;addValidator('EmailAddress')
      -&gt;addValidator(new Zend_Validate_Db_NoRecordExists(
                                                          array(
                                                                  'adapter'=&gt;Zend_Registry::get('user_db'),
                                                                  'field'=&gt;'email',
                                                                  'table'=&gt;'tbl_user'
                                                                  )))
      -&gt;setRequired(true)
      -&gt;setDecorators(array(
                              array('Label', array('escape'=&gt;false, 'placement'=&gt;'append')),
                              array('ViewHelper'),
                              array('Errors'),
                              array('Description',array('escape'=&gt;false,'tag'=&gt;'div')),
                              array('HtmlTag', array('tag' =&gt; 'div')),
                          ));
  $this-&gt;addElement($email);
  </code></pre>
  
  <p>now the problem is if user enter invalid hostname for email, it generate 3 errors. lets say user enter 'admin@l' as email address, and the errors will be<br>
  * 'l' is no valid hostname for email address 'admin@l'<br>
  * 'l' does not match the expected structure for a DNS hostname<br>
  * 'l' appears to be a local network name but local network names are not allowed    </p>
  
  <p>I just want it to give only one custom error instead of all these. If I set error message "Invalid Email Address" by addErrorMessage method, it will again generate the same message against the db_validation.</p>