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:49:49 +10:00
parent 21eb9c16f2
commit 966939a843
2 changed files with 4 additions and 9 deletions

View File

@ -101,12 +101,7 @@ class NinjaMailerJob implements ShouldQueue
if (strlen($this->nmo->settings->bcc_email) > 1) {
$bcc_list = [];
foreach(explode(",", $this->nmo->settings->bcc_email) as $bcc)
$bcc_list[] = $bcc;
$this->nmo->mailable->bcc($bcc_list, 'Blind Copy');
$this->nmo->mailable->bcc(explode(",", $this->nmo->settings->bcc_email));
}

View File

@ -80,8 +80,8 @@ class TemplateEmail extends Mailable
$this->from(config('mail.from.address'), $this->company->present()->name());
if (strlen($settings->bcc_email) > 1)
$this->bcc($settings->bcc_email, $settings->bcc_email);
// if (strlen($settings->bcc_email) > 1)
// $this->bcc(explode(",",$settings->bcc_email), 'BCC');
$this->subject($this->build_email->getSubject())
->text('email.template.plain', [