The easiest thing to do is wrap it in try catch blocks.  Extending the
Zend_Mail components is no trivial task.  See my messeage 
http://www.nabble.com/Extending-Zend_Mail_Part-for-Reading-p18641268.html
Extending Zend_Mail_Part for Reading  to get an idea of what is required to
extend.



Guillaume Rossolini wrote:
> 
> Hi,
> 
> I just noticed that Zend_Mail_Message::getHeader() throws an exception
> when
> I try to get a header that is not there.  For instance, the "reply-to"
> header isn't mandatory.
> Do you think I should put try/catch blocks in my code? Or maybe
> subclassing
> Zend_Mail_Message to return a false boolean would be a more sensible
> approach?
> 
> Thanks,
> 
> --
> Guillaume Rossolini
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Mail_Part%3A%3AgetHeader%28%29-and-optional-mail-headers-tp18809984p18856297.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to