Beispiel #1
0
     //personalisiertes newsletter!
     send_log("personalized newsletter!");
     //max bcc adressen =1
     $max_mails_bcc = 1;
 }
 //if massmail, we can cache body parts
 if ($massmail) {
     $email_obj->cache_body = 1;
 } else {
     $email_obj->cache_body = 0;
 }
 $max_mails = $max_mails_atonce * $max_mails_bcc;
 //maximale anzahl zu bearbeitender mails/empfaenger insgesamt! faktor max_mails_bcc
 send_log("creating list");
 //aktuel offene versandauftraege
 $H = $QUEUE->getHtoSend(0, 0, $max_mails, $Q[$qcc]['id']);
 //id , offset, limit, q_id !!!, ....
 $hc = count($H);
 //wieviel sendeeintraege
 send_log($hc . " Entrys found\n");
 $time = $T->MidResult();
 send_log("time: " . $time);
 send_log("working on max {$max_mails} addresses in {$max_mails_atonce} mails with {$max_mails_bcc} recipients for each mail");
 //wenn massenmailing, body hier schon parsen!!!
 if ($massmail) {
     //to fuer massenmailing
     send_log("prepare Massmail");
     $SUBJ = $NEWSLETTER->parseSubject(array('text' => $NL[0]['subject'], 'date' => date(TM_NL_DATEFORMAT)));
     //hmmm, we should use date from send_at in q!
     send_log("Subject: " . $NL[0]['subject']);
     send_log("Subject (parsed): " . $SUBJ);