Fix id of event
This commit is contained in:
parent
5723c4562a
commit
cb09d13867
1 changed files with 6 additions and 1 deletions
|
|
@ -349,8 +349,13 @@ class PartnershipUtils
|
|||
$from = dol_string_nospecial($conf->global->MAIN_INFO_SOCIETE_NOM, ' ', array(",")).' <'.$conf->global->MAIN_INFO_SOCIETE_MAIL.'>';
|
||||
|
||||
$to = $obj->email;
|
||||
if ($managedfor == 'member') {
|
||||
$trackid = 'mem'.$fk_partner;
|
||||
} else {
|
||||
$trackid = 'thi'.$fk_partner;
|
||||
}
|
||||
|
||||
$cmail = new CMailFile($subject, $to, $from, $msg, array(), array(), array(), '', '', 0, 1);
|
||||
$cmail = new CMailFile($subject, $to, $from, $msg, array(), array(), array(), '', '', 0, 1, '', '', $trackid);
|
||||
$result = $cmail->sendfile();
|
||||
if (!$result || $cmail->error) {
|
||||
$erroremail .= ($erroremail ? ', ' : '').$cmail->error;
|
||||
|
|
|
|||
Loading…
Reference in a new issue