jobParams = array($email, $name, $subject, $html, $author); return $this; } /** * Execute job * * @access public * @param string $email * @param string $name * @param string $subject * @param string $html * @param string $author */ public function execute($email, $name, $subject, $html, $author) { $this->logger->debug(__METHOD__.' Sending email to '.$email.' via '.MAIL_TRANSPORT); $startTime = microtime(true); $this->emailClient ->getTransport(MAIL_TRANSPORT) ->sendEmail($email, $name, $subject, $html, $author) ; if (DEBUG) { $this->logger->debug('Email sent in '.round(microtime(true) - $startTime, 6).' seconds'); } } }