Commit ac83f200 authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FIX #19325 TIME 1:00 bigger email meta table && remove old tmp html files - Jean-Laurent

parent 2f3d3f18
......@@ -964,7 +964,7 @@ class FolderPrintController
$status = _EMAIL_ERROR_SENT;
}
$widthTable_px = "1000px";
$widthTable_px = "1200px";
$cellPaddingBottom_px = "30px";
$emailMeta = "<table style=\"width: $widthTable_px;\" cellspacing=\"0\" cellpadding=\"5\">
......@@ -1013,9 +1013,10 @@ class FolderPrintController
$tmpDir = CoreConfigModel::getTmpPath();
$filePathInTmpNoExtension = $tmpDir . 'email_' . $email['id'] . '_' . $GLOBALS['id'];
file_put_contents($filePathInTmpNoExtension.'.html', mb_convert_encoding($emailMeta_emailDataBody, 'HTML', 'UTF-8'));
ConvertPdfController::convertInPdf(['fullFilename' => $filePathInTmpNoExtension.'.html']);
if(file_exists($filePathInTmpNoExtension.'.html')){ unlink($filePathInTmpNoExtension.'.html');}
return $filePathInTmpNoExtension.'.pdf';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment