diff options
Diffstat (limited to 'app/Core/Mail/Transport/Mail.php')
-rw-r--r-- | app/Core/Mail/Transport/Mail.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Core/Mail/Transport/Mail.php b/app/Core/Mail/Transport/Mail.php index ca06e208..4d833f8f 100644 --- a/app/Core/Mail/Transport/Mail.php +++ b/app/Core/Mail/Transport/Mail.php @@ -30,7 +30,6 @@ class Mail extends Base implements ClientInterface public function sendEmail($email, $name, $subject, $html, $author) { try { - $message = Swift_Message::newInstance() ->setSubject($subject) ->setFrom(array(MAIL_FROM => $author)) @@ -38,8 +37,7 @@ class Mail extends Base implements ClientInterface ->setTo(array($email => $name)); Swift_Mailer::newInstance($this->getTransport())->send($message); - } - catch (Swift_TransportException $e) { + } catch (Swift_TransportException $e) { $this->logger->error($e->getMessage()); } } |