From 34de0421d890c96ab22584cfac0c5e174fe4c862 Mon Sep 17 00:00:00 2001 From: sikofitt Date: Fri, 15 Jul 2016 11:24:09 -0700 Subject: [PATCH] Fixed Swiftmailer not catching Exceptions --- src/Sikofitt/Controller/ApiControllerProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sikofitt/Controller/ApiControllerProvider.php b/src/Sikofitt/Controller/ApiControllerProvider.php index 1171d41..9e92892 100644 --- a/src/Sikofitt/Controller/ApiControllerProvider.php +++ b/src/Sikofitt/Controller/ApiControllerProvider.php @@ -137,14 +137,14 @@ class ApiControllerProvider implements ControllerProviderInterface { $contactFormName = $contactFormData['contact']['name']; $contactFormEmail = $contactFormData['contact']['email']; $contactFormMessage = $contactFormData['contact']['message']; - + $message = $contactFormMessage . "\n\nEmail : " . $contactFormName . '<' . $contactFormEmail . '>'; $failures = ''; $sent = $app['mailer']->send(\Swift_Message::newInstance() ->setSubject('[Resume] Message') ->setFrom(['no-reply@rewiv.com' => $contactFormName]) ->setTo($app->config('app.email')) - ->setBody($contactFormMessage) + ->setBody($message) , $failures); if($sent > 0) { $request->getSession()->remove('_csrf/contact');