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); $email_obj->SetEncodedHeader("Subject", $SUBJ); //argh, this class forces us to add a to header which is definitely not needed if we have bcc or cc!!! $To = $HOST[0]['sender_email']; //wird $HOST! if (!empty($NL[0]['rcpt_name'])) { $ToName = $NEWSLETTER->parseRcptName(array('text' => $NL[0]['rcpt_name'], 'date' => date(TM_NL_DATEFORMAT))); //hmmm, we should use date from send_at in q! } else { if (!empty($C[0]['rcpt_name'])) { $ToName = $NEWSLETTER->parseRcptName(array('text' => $C[0]['rcpt_name'], 'date' => date(TM_NL_DATEFORMAT))); //hmmm, we should use date from send_at in q! } 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");