summaryrefslogtreecommitdiff
path: root/app/Job
diff options
context:
space:
mode:
Diffstat (limited to 'app/Job')
-rw-r--r--app/Job/EmailJob.php5
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)
;