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:
parent
21eb9c16f2
commit
966939a843
@ -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));
|
||||
|
||||
}
|
||||
|
||||
|
@ -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', [
|
||||
|
Loading…
Reference in New Issue
Block a user