public function Exception::errorMessage

5.x Exception.php public Exception::errorMessage()

Prettify error message output.

Return value

string

File

inc/PHPMailer/src/Exception.php, line 35

Class

Exception
PHPMailer exception handler.

Namespace

PHPMailer\PHPMailer

Code

public function errorMessage() 
 {
  return '<strong>' . htmlspecialchars($this->getMessage()) . "</strong><br />\n";
}