diff options
Diffstat (limited to 'app/model')
-rw-r--r-- | app/model/Form.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/model/Form.php b/app/model/Form.php index 4e6d3f3..18ac634 100644 --- a/app/model/Form.php +++ b/app/model/Form.php @@ -1,6 +1,5 @@ <?php -// PHP mailer namespace use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; @@ -78,8 +77,8 @@ class Form //Send Mail $mail->send(); - } catch (Exception $e) { - include '../app/views/mail-error.view.php'; + } catch (Exception $exception) { + log_exception($exception); } } } |