1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for BCC list

This commit is contained in:
David Bomba 2021-06-17 20:01:34 +10:00
parent 949ccee9a7
commit 8513f1408d

View File

@ -100,9 +100,14 @@ class NinjaMailerJob implements ShouldQueue
if (strlen($this->nmo->settings->bcc_email) > 1) { if (strlen($this->nmo->settings->bcc_email) > 1) {
nlog('bcc list available');
nlog($this->nmo->settings->bcc_email); $bcc_list = [];
$this->nmo->mailable->bcc(explode(",", $this->nmo->settings->bcc_email), 'Blind Copy');
foreach(explode(",", $this->nmo->settings->bcc_email) as $bcc)
$bcc_list[] = $bcc;
$this->nmo->mailable->bcc($bcc_list, 'Blind Copy');
} }