Ejemplo n.º 1
0
         } else {
             $ToName = "Tellmatic Newsletter";
         }
     }
     send_log("rcpt_name=" . $NL[0]['rcpt_name']);
     send_log("ToName=" . $ToName);
     #send_log(  "\n".date("Y-m-d H:i:s").":   set To: Header $ToName ($To)");
     send_log("TO: NOT SET, USING BCC");
     //dont add to: header in massmails, only use bcc! but:
     send_log("prepare Template Vars for Massmail");
     //new, 1088, use parseNL
     send_log("parse Newsletter");
     $NLBODY = "";
     if ($NL[0]['content_type'] == "html" || $NL[0]['content_type'] == "text/html") {
         send_log("parse Newsletter html version");
         $NLBODY = $NEWSLETTER->parseNL(array('nl' => $NL[0]), "html");
     }
     $NLBODY_TEXT = "";
     if ($NL[0]['content_type'] == "text" || $NL[0]['content_type'] == "text/html") {
         send_log("parse Newsletter text version");
         $NLBODY_TEXT = $NEWSLETTER->parseNL(array('nl' => $NL[0]), "text");
     }
     #hmmm, date is set to now! ?
     #weird, but we will get rid of the massmail feature in 1090, so doesnt really matter
 }
 //massmail
 //Schleife Versandliste h....
 //bei massenmail..... immer um max_mails_bcc erhoehen!
 //(max_mails_bcc) * (hcc/max_mails_bcc) ??? limit... hc
 for ($hcc = 0; $hcc < $hc; $hcc = $hcc + $max_mails_bcc) {
     send_log("runnning Entry {$hcc} to {$hcc}+{$max_mails_bcc}");
Ejemplo n.º 2
0
 }
 //valid_h
 //now parse Newsletter:
 if ($NL[0]['content_type'] == "html" || $NL[0]['content_type'] == "text/html") {
     $content_type = "html";
     header('Content-type: text/html');
 } else {
     $content_type = "text";
     header('Content-type: text/plain');
 }
 if (DEBUG) {
     echo "content type = " . $content_type . "<br>";
 }
 if ($personalized && $valid_adr && $valid_h) {
     //personalisiert
     $_NEWSLETTER = $NEWSLETTER->parseNL(array('nl' => $NL[0], 'adr' => $ADR[0], 'h' => array('id' => $H[0]['id']), 'q' => array('id' => $H[0]['q_id'])), $content_type);
     if (DEBUG) {
         echo "personalized<br>";
     }
 } else {
     if (DEBUG) {
         echo "no valid adr OR no valid h OR not personalized<br>";
     }
     //hierdurch wird noch erreicht das nur unpersonalisierte nl als solche ausgegeben werden
     if (!$personalized && $NL[0]['massmail'] == 1) {
         //anonymous
         $_NEWSLETTER = $NEWSLETTER->parseNL(array('nl' => $NL[0], 'q' => array('id' => $q_id)), $content_type);
         if (DEBUG) {
             echo "massmail<br>";
         }
     } else {