setSubject($subject) ->setFrom($this->helper->mail->getMailSenderAddress(), $authorName) ->setTo(array($recipientEmail => $recipientName)); if (! empty($authorEmail)) { $message->setReplyTo($authorEmail); } $message->setBody($html, 'text/html'); Swift_Mailer::newInstance($this->getTransport())->send($message); } catch (Swift_TransportException $e) { $this->logger->error($e->getMessage()); } } /** * Get SwiftMailer transport * * @access protected * @return \Swift_Transport */ protected function getTransport() { return Swift_MailTransport::newInstance(); } }