Fix hidden feature to send remind by email
This commit is contained in:
parent
c8f12dc5f2
commit
c4fa4fc931
@ -129,10 +129,12 @@ if ($action == 'presend' && GETPOST('sendmail'))
|
|||||||
'__CHECK_READ__' => '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag='.$obj2->tag.'&securitykey='.urlencode($conf->global->MAILING_EMAIL_UNSUBSCRIBE_KEY).'" width="1" height="1" style="width:1px;height:1px" border="0"/>',
|
'__CHECK_READ__' => '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag='.$obj2->tag.'&securitykey='.urlencode($conf->global->MAILING_EMAIL_UNSUBSCRIBE_KEY).'" width="1" height="1" style="width:1px;height:1px" border="0"/>',
|
||||||
//'__LASTNAME__' => $obj2->lastname,
|
//'__LASTNAME__' => $obj2->lastname,
|
||||||
//'__FIRSTNAME__' => $obj2->firstname,
|
//'__FIRSTNAME__' => $obj2->firstname,
|
||||||
'__REF__' => $object->ref,
|
'__FACREF__' => $object->ref, // For backward compatibility
|
||||||
|
'__REF__' => $object->ref,
|
||||||
'__REFCLIENT__' => $object->thirdparty->name
|
'__REFCLIENT__' => $object->thirdparty->name
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$subject=make_substitutions($subject, $substitutionarray);
|
||||||
$message=make_substitutions($message, $substitutionarray);
|
$message=make_substitutions($message, $substitutionarray);
|
||||||
|
|
||||||
$actiontypecode='AC_FAC';
|
$actiontypecode='AC_FAC';
|
||||||
@ -160,7 +162,7 @@ if ($action == 'presend' && GETPOST('sendmail'))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$resultmasssend.=$langs->trans('MailSuccessfulySent',$mailfile->getValidAddress($from,2),$mailfile->getValidAddress($sendto,2)); // Must not contain "
|
$resultmasssend.=$langs->trans('MailSuccessfulySent',$mailfile->getValidAddress($from,2),$mailfile->getValidAddress($sendto,2)); // Must not contain "
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user