aboutsummaryrefslogtreecommitdiff
path: root/Html/classes/phpmailer/exception.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Html/classes/phpmailer/exception.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/Html/classes/phpmailer/exception.php b/Html/classes/phpmailer/exception.php
new file mode 100644
index 0000000..9a4b846
--- /dev/null
+++ b/Html/classes/phpmailer/exception.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * PHPMailer exception handler
+ * @package PHPMailer
+ */
+
+class PhpMailerException extends \Exception
+{
+ /**
+ * Prettify error message output
+ * @return string
+ */
+ public function errorMessage()
+ {
+ $errorMsg = '<strong>' . $this->getMessage() . "</strong><br />\n";
+ echo $errorMsg;
+ }
+}