author | ymh <ymh.work@gmail.com> |
Mon, 08 Sep 2025 19:44:41 +0200 | |
changeset 23 | 417f20492bf7 |
parent 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
16 | 1 |
<?php |
18 | 2 |
|
16 | 3 |
/** |
4 |
* PHPMailer Exception class. |
|
5 |
* PHP Version 5.5. |
|
6 |
* |
|
7 |
* @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project |
|
8 |
* |
|
9 |
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> |
|
10 |
* @author Jim Jagielski (jimjag) <jimjag@gmail.com> |
|
11 |
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net> |
|
12 |
* @author Brent R. Matzelle (original founder) |
|
18 | 13 |
* @copyright 2012 - 2020 Marcus Bointon |
16 | 14 |
* @copyright 2010 - 2012 Jim Jagielski |
15 |
* @copyright 2004 - 2009 Andy Prevost |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
16 |
* @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License |
16 | 17 |
* @note This program is distributed in the hope that it will be useful - WITHOUT |
18 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
19 |
* FITNESS FOR A PARTICULAR PURPOSE. |
|
20 |
*/ |
|
21 |
||
22 |
namespace PHPMailer\PHPMailer; |
|
23 |
||
24 |
/** |
|
25 |
* PHPMailer exception handler. |
|
26 |
* |
|
27 |
* @author Marcus Bointon <phpmailer@synchromedia.co.uk> |
|
28 |
*/ |
|
29 |
class Exception extends \Exception |
|
30 |
{ |
|
31 |
/** |
|
32 |
* Prettify error message output. |
|
33 |
* |
|
34 |
* @return string |
|
35 |
*/ |
|
36 |
public function errorMessage() |
|
37 |
{ |
|
19 | 38 |
return '<strong>' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "</strong><br />\n"; |
16 | 39 |
} |
40 |
} |