2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2020-02-19 01:17:16 +01:00
parent 51bc20a110
commit 016c7ad875

View File

@@ -144,6 +144,9 @@ class CMailFile
}
}
// Add autocopy to (Note: Adding bcc for specific modules are also done from pages)
if (!empty($conf->global->MAIN_MAIL_AUTOCOPY_TO)) $addr_bcc .= ($addr_bcc ? ', ' : '').$conf->global->MAIN_MAIL_AUTOCOPY_TO;
$this->subject = $subject;
$this->addr_to = $to;
$this->addr_from = $from;
@@ -268,9 +271,6 @@ class CMailFile
}
}
// Add autocopy to (Note: Adding bcc for specific modules are also done from pages)
if (!empty($conf->global->MAIN_MAIL_AUTOCOPY_TO)) $addr_bcc .= ($addr_bcc ? ', ' : '').$conf->global->MAIN_MAIL_AUTOCOPY_TO;
// We set all data according to choosed sending method.
// We also set a value for ->msgid
if ($this->sendmode == 'mail')