|
@@ -3146,12 +3146,13 @@ class Adherent extends CommonObject
|
|
|
$msg = make_substitutions($arraydefaultmessage->content, $substitutionarray, $outputlangs);
|
|
|
$from = getDolGlobalString('ADHERENT_MAIL_FROM');
|
|
|
$to = $adherent->email;
|
|
|
+ $cc = getDolGlobalString('ADHERENT_CC_MAIL_FROM');
|
|
|
|
|
|
$trackid = 'mem'.$adherent->id;
|
|
|
$moreinheader = 'X-Dolibarr-Info: sendReminderForExpiredSubscription'."\r\n";
|
|
|
|
|
|
include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
|
|
- $cmail = new CMailFile($subject, $to, $from, $msg, array(), array(), array(), '', '', 0, 1, '', '', $trackid, $moreinheader);
|
|
|
+ $cmail = new CMailFile($subject, $to, $from, $msg, array(), array(), array(), $cc, '', 0, 1, '', '', $trackid, $moreinheader);
|
|
|
$result = $cmail->sendfile();
|
|
|
if (!$result) {
|
|
|
$error++;
|