set unknow variables

This commit is contained in:
Frédéric FRANCE 2020-10-25 22:39:12 +01:00 committed by GitHub
parent 858c48bd15
commit 10ff359889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1515,6 +1515,8 @@ class Ticket extends CommonObject
$conf->global->MAIN_MAIL_AUTOCOPY_TO = '';
}
include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
$sendtocc = '';
$deliveryreceipt = 0;
$mailfile = new CMailFile($subject, $info_sendto['email'], $from, $message, $filepath, $mimetype, $filename, $sendtocc, '', $deliveryreceipt, 0);
if ($mailfile->error || $mailfile->errors) {
setEventMessages($mailfile->error, $mailfile->errors, 'errors');