Fix sendocntext for builk action
This commit is contained in:
parent
62387f712c
commit
009cc36355
@ -499,9 +499,11 @@ if (!$error && $massaction == 'confirm_presend')
|
||||
//var_dump($trackid);exit;
|
||||
//var_dump($subjectreplaced);
|
||||
|
||||
if (empty($sendcontext)) $sendcontext = 'standard';
|
||||
|
||||
// Send mail (substitutionarray must be done just before this)
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
||||
$mailfile = new CMailFile($subjectreplaced, $sendto, $from, $messagereplaced, $filepath, $mimetype, $filename, $sendtocc, $sendtobcc, $deliveryreceipt, -1, '', '', $trackid);
|
||||
$mailfile = new CMailFile($subjectreplaced, $sendto, $from, $messagereplaced, $filepath, $mimetype, $filename, $sendtocc, $sendtobcc, $deliveryreceipt, -1, '', '', $trackid, '', $sendcontext);
|
||||
if ($mailfile->error)
|
||||
{
|
||||
$resaction .= '<div class="error">'.$mailfile->error.'</div>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user