Minor fixes for bcc's

This commit is contained in:
David Bomba 2022-06-19 16:10:37 +10:00
parent 5b5167ae59
commit ad1bea598c

View File

@ -90,8 +90,10 @@ class TemplateEmail extends Mailable
if (strlen($settings->bcc_email) > 1){ if (strlen($settings->bcc_email) > 1){
if(Ninja::isHosted()) if(Ninja::isHosted()){
$this->bcc(reset(explode(",",str_replace(" ", "", $settings->bcc_email))));//remove whitespace if any has been inserted. $bccs = explode(",",str_replace(" ", "", $settings->bcc_email));
$this->bcc(reset($bccs));//remove whitespace if any has been inserted.
}
else else
$this->bcc(explode(",",str_replace(" ", "", $settings->bcc_email)));//remove whitespace if any has been inserted. $this->bcc(explode(",",str_replace(" ", "", $settings->bcc_email)));//remove whitespace if any has been inserted.