From c9179c4df52279086f170bc540ea34e9fb430f48 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Thu, 28 Mar 2019 21:42:58 -0400 Subject: bootstrap/Functions: Log the exception in phpmailer --- bootstrap/Functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstrap') diff --git a/bootstrap/Functions.php b/bootstrap/Functions.php index e53fb59..cba90aa 100644 --- a/bootstrap/Functions.php +++ b/bootstrap/Functions.php @@ -33,8 +33,8 @@ function sendMail($name, $email, $message) $mail->AltBody = $message; $mail->send(); - } catch (Exception $e) { - require '../views/senterror.view.php'; + } catch (Exception $exception) { + log_exception($exception); } } -- cgit v1.2.3