Zend Mail异常-无法路由的地址-为什么?

| 嗨,大家好,我建立了一个简单的cron程序,它使用zend框架在php中运行。它定期将电子邮件发送给具有更新的网站成员。当突然通过电子邮件发送到特定电子邮件时,它突然消失了,而我得到的只是以下错误消息,它工作正常:
PHP Fatal error:  Uncaught exception \'Zend_Mail_Protocol_Exception\' with message \'Unrouteable address \' in /web/content/library/Zend/Mail/Protocol/Abstract.php:431
这是怎么回事,为什么这封特定电子邮件会发生这种情况? 电子邮件看起来不错,尽管它没有格式错误或如此。另外,如何防止此类事情停止cron作业以继续处理其他电子邮件。     
已邀请:
将它放在try catch块中怎么办?     
首先,您应该验证电子邮件地址,然后,您应该尝试这样的catch块:
try {

                    /*
                     * Set up Testing environment for Smtp mail
                     * Handle Mail exceptions Different
                     */

                    $mail = new Zend_Mail();
                    $mail->send();




                } catch (Zend_Mail_Transport_Exception $ex) {
                    $this->addError(\'There was an error sending e-mail to the new admin !\');
                } catch (Exception $ex) {
                    $this->addError(\'There was an error processing your request\');
                }
    

要回复问题请先登录注册