$log_msg = "ERROR: set adr to status=" . $a_status; $ADDRESS->addMemo($H[$bcc]['adr_id'], "send_it: " . $log_msg); send_log($log_msg); //$ADDRESS->setStatus($H[$bcc]['adr_id'],$a_status); $ADDRESS->setStatus($ADR[0]['id'], $a_status); $ADDRESS->setAError($ADR[0]['id'], $ADR[0]['errors'] + 1); //fehler um 1 erhoehen //ADR Status $log_msg = "adr errors (new): " . ($ADR[0]['errors'] + 1); $ADDRESS->addMemo($H[$bcc]['adr_id'], "send_it: " . $log_msg); send_log($log_msg); } send_log("set h_status={$h_status}"); $QUEUE->setHStatus($H[$bcc]['id'], $h_status); $created = date("Y-m-d H:i:s"); $QUEUE->setHSentDate($H[$bcc]['id'], $created); //wenn kein fehler aufgetreten... dann mail vorbereiten if (!$a_error && !$h_error) { if (!$massmail) { //add some additional personalized headers $email_obj->SetEncodedHeader("X-TM_ACODE", $ADR[0]['code']); $email_obj->SetEncodedHeader("X-TM_AID", $ADR[0]['id']); //new, 1088, use parseNL send_log("parse Newsletter"); $NLBODY = "empty htmlpart"; 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], 'adr' => $ADR[0], 'h' => array('id' => $H[$bcc]['id']), 'q' => array('id' => $H[$bcc]['q_id'])), "html"); } $NLBODY_TEXT = "empty textpart"; if ($NL[0]['content_type'] == "text" || $NL[0]['content_type'] == "text/html") {