diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-03-28 21:42:58 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-03-28 21:42:58 -0400 |
commit | c9179c4df52279086f170bc540ea34e9fb430f48 (patch) | |
tree | d856ea0dafc90d15532e29cdc38dfbb263ce95a7 /bootstrap | |
parent | e40701e1565e5575e7c740498bfc3f138b3041ce (diff) | |
download | edwinmattiacci.com-c9179c4df52279086f170bc540ea34e9fb430f48.tar.gz edwinmattiacci.com-c9179c4df52279086f170bc540ea34e9fb430f48.tar.bz2 edwinmattiacci.com-c9179c4df52279086f170bc540ea34e9fb430f48.zip |
bootstrap/Functions: Log the exception in phpmailer
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/Functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |