From d18e1d74362dd787ab2ee40dfcfbd34c3b121500 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 24 Feb 2021 10:43:08 +1100 Subject: [PATCH] fixes for BCC --- app/Jobs/Mail/NinjaMailerJob.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Jobs/Mail/NinjaMailerJob.php b/app/Jobs/Mail/NinjaMailerJob.php index 56521b8278..09f8c7fc8b 100644 --- a/app/Jobs/Mail/NinjaMailerJob.php +++ b/app/Jobs/Mail/NinjaMailerJob.php @@ -79,10 +79,9 @@ class NinjaMailerJob implements ShouldQueue } - if (strlen($settings->bcc_email) > 1) { - $this->nmo->mailable->bcc($settings->bcc_email, $settings->bcc_email); - } - + if (strlen($this->nmo->settings->bcc_email) > 1) + $this->nmo->mailable->bcc($this->nmo->settings->bcc_email, $this->nmo->settings->bcc_email); + //send email try {