예제 #1
0
     }
     //save initial part ids
     if ($use_textpart) {
         $mimepart_text_init = $mimepart_text;
     }
     if ($use_htmlpart) {
         $mimepart_html_init = $mimepart_html;
     }
     send_log("add Parts");
     $email_obj->AddAlternativeMultipart($partids);
 }
 //if not massmail: only replace part
 if (!$massmail && $hcc > 0) {
     send_log("replace Parts for personalized mailing");
     if ($use_htmlpart) {
         $email_obj->ReplacePart($mimepart_html_init, $mimepart_html);
     }
     if ($use_textpart) {
         $email_obj->ReplacePart($mimepart_text_init, $mimepart_text);
     }
 }
 if ($massmail && $hcc > 0) {
     send_log("use cached body parts");
 }
 //only add attachements on first run, hcc=0
 if ($hcc == 0) {
     //erst jetzt darf der part f.d. attachement hinzugefuegt werden!
     $attachements = $NL[0]['attachements'];
     $atc = count($attachements);
     if ($atc > 0) {
         send_log("adding " . $atc . " Attachements:");