diff --git a/CRM/Utils/Mail/FilteredPearMailer.php b/CRM/Utils/Mail/FilteredPearMailer.php index 1c11e23d16db..5ede19aa46ac 100644 --- a/CRM/Utils/Mail/FilteredPearMailer.php +++ b/CRM/Utils/Mail/FilteredPearMailer.php @@ -109,4 +109,11 @@ public function __unset($name) { unset($this->_delegate->{$name}); } + public function disconnect() { + if (is_callable([$this->_delegate, 'disconnect'])) { + return $this->_delegate->disconnect(); + } + return TRUE; + } + }