Exemplo n.º 1
0
                 $skipped = true;
             }
         }
     } else {
         //if isset h[bcc][id]
         send_log("*** h[][id] not set");
     }
     $ADDRESS->markRecheck($ADR[0]['id'], 0);
 }
 //for bcc
 /*
 BCC
 */
 if ($massmail) {
     send_log("BCC=" . $BCC);
     $email_obj->SetMultipleEncodedEmailHeader('BCC', $BCC_Arr);
     $email_obj->SetHeader("Precedence", "bulk");
     $log_adr_id = 0;
 }
 $send_ok = false;
 if (!$a_error && !$h_error && $send_it) {
     send_log("add Mail Body");
     $use_textpart = false;
     $use_htmlpart = false;
     //add mailparts in first run, otherwise: if massmail: use cached body, add nothing, or if personalized: replace part
     //if massmail and first run, or on each run if personalizef mailing: create parts
     if (!$massmail || $massmail && $hcc == 0) {
         //create text/html part:
         send_log("Newsletter is from type: '" . $NL[0]['content_type'] . "'");
         //we want mixed multipart, with alternative text/html and attachements, inlineimages and all that
         //text part must be the first one!!!