From 93a7796a8414ddc1a8490db5e2fcddc2ea6345f0 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 16 Mar 2010 15:11:43 -0600 Subject: [PATCH] send() already throws a Horde_Mime_Exception --- framework/Mime/lib/Horde/Mime/Mail.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/framework/Mime/lib/Horde/Mime/Mail.php b/framework/Mime/lib/Horde/Mime/Mail.php index 42feafeca..7a439e6d1 100644 --- a/framework/Mime/lib/Horde/Mime/Mail.php +++ b/framework/Mime/lib/Horde/Mime/Mail.php @@ -484,14 +484,9 @@ class Horde_Mime_Mail } /* Send message. */ - $res = $basepart->send(implode(', ', $this->_recipients), + return $basepart->send(implode(', ', $this->_recipients), $this->_headers, $this->_mailer_driver, $this->_mailer_params); - if (is_a($res, 'PEAR_Error')) { - throw new Horde_Mime_Exception($res); - } - - return $res; } /** -- 2.11.0