lucian.pricop 2024-12-03 16:59:45 +02:00
rodzic d330256e75
commit 4fc9ebf48a
1 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -22,6 +22,19 @@ for ($j = 0; $j < count($emails) && $j < 5; $j++) {
if($structure->encoding == 3) {
$base64encode = true; // BASE64
}
if( isset($structure->parts) &&
isset($structure->parts[0]) &&
$structure->parts[0]->encoding == 3) {
$base64encode = true; // BASE64
}
if(isset($structure->parts) &&
isset($structure->parts[0]) &&
isset($structure->parts[0]->parts) &&
isset($structure->parts[0]->parts[0]) &&
$structure->parts[0]->parts[0]->encoding == 3) {
// this handles parts with inline attachments
$base64encode = true; // BASE64
}
$attachments = array();
$attNames = array();
if (isset($structure->parts) && count($structure->parts)) {