XF_Index/class/Mailer/PHPMailer/Exception.php

28 lines
576 B
PHP
Raw Normal View History

2023-05-02 14:49:16 +08:00
<?php
2023-05-04 22:29:50 +08:00
2023-05-02 14:49:16 +08:00
/*
* Copyright © 2016 - 2023 筱锋xiao_lfeng. All Rights Reserved.
* 开发开源遵循 MIT 许可,若需商用请联系开发者
* https://www.x-lf.com/
*/
2023-05-04 22:29:50 +08:00
namespace Mailer;
2023-05-02 14:49:16 +08:00
/**
* PHPMailer exception handler.
*
* @author Marcus Bointon <phpmailer@synchromedia.co.uk>
*/
class Exception extends \Exception
{
/**
* Prettify error message output.
*
* @return string
*/
public function errorMessage()
{
return '<strong>' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "</strong><br />\n";
}
}