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

Merge pull request #6068 from turbo124/v5-develop

Fixes for BCC list
This commit is contained in:
David Bomba 2021-06-17 20:02:15 +10:00 committed by GitHub
commit 21eb9c16f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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