diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-05 14:53:46 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-05 14:53:46 -0400 |
commit | cd4c09c10aabb133efa0ef5e0566630941178a4a (patch) | |
tree | 2f3f56617c90ce8c907f46324fa2dde26e91e79d /app/Job | |
parent | a08339059b06bcfb673b13a380b6f199abfb5983 (diff) |
Conifgure email settings through user interface
Diffstat (limited to 'app/Job')
-rw-r--r-- | app/Job/EmailJob.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Job/EmailJob.php b/app/Job/EmailJob.php index 9293a1d4..2da3ca2a 100644 --- a/app/Job/EmailJob.php +++ b/app/Job/EmailJob.php @@ -39,11 +39,12 @@ class EmailJob extends BaseJob */ public function execute($email, $name, $subject, $html, $author) { - $this->logger->debug(__METHOD__.' Sending email to '.$email.' via '.MAIL_TRANSPORT); + $transport = $this->helper->mail->getMailTransport(); + $this->logger->debug(__METHOD__.' Sending email to: '.$email.' using transport: '.$transport); $startTime = microtime(true); $this->emailClient - ->getTransport(MAIL_TRANSPORT) + ->getTransport($transport) ->sendEmail($email, $name, $subject, $html, $author) ; |