diff --git a/extend/phpmailer/PHPMailer.php b/extend/phpmailer/PHPMailer.php index 4de1470cafee3fc5b5058351ce95a070956dc378..0d38879bc96153b892f83528087feb957e3a5fff 100644 --- a/extend/phpmailer/PHPMailer.php +++ b/extend/phpmailer/PHPMailer.php @@ -28,7 +28,7 @@ namespace phpmailer; * @author Andy Prevost (codeworxtech) * @author Brent R. Matzelle (original founder) */ -class PHPMailer extends think\Exception +class PHPMailer { const CHARSET_ISO88591 = 'iso-8859-1'; const CHARSET_UTF8 = 'utf-8'; @@ -1772,7 +1772,7 @@ class PHPMailer extends think\Exception { $bad_rcpt = []; if (!$this->smtpConnect($this->SMTPOptions)) { - throw new Exception($this->lang('smtp_connect_failed'), self::STOP_CRITICAL); + throw new \Exception($this->lang('smtp_connect_failed'), self::STOP_CRITICAL); } //Sender already validated in preSend() if ('' == $this->Sender) {