$search = array(); } require_once TM_INCLUDEPATH . "/adr_search.inc.php"; if ($no_list != 1) { if ($set == "aktiv") { $ADDRESS->setAktiv($adr_id, $val); if ($val == 1) { $_MAIN_MESSAGE .= "<br>" . ___("Eintrag wurde aktiviert."); } else { $_MAIN_MESSAGE .= "<br>" . ___("Eintrag wurde de-aktiviert."); } } //aktiv single if ($set == "delete" && $doit == 1) { if (!DEMO) { $ADDRESS->delAdr($adr_id); } $_MAIN_MESSAGE .= "<br>" . ___("Eintrag wurde gelöscht."); } //del single if ($set == "check") { $ADR_check = $ADDRESS->getAdr($adr_id); $_MAIN_MESSAGE .= "<br>" . ___("Eintrag wird geprüft:") . " <br><em>" . display($ADR_check[0]['email']) . "</em>"; $check_mail = checkEmailAdr($ADR_check[0]['email'], $EMailcheck_Intern); if (!$check_mail[0]) { $_MAIN_MESSAGE .= "<br><font color=\"red\">" . ___("Die E-Mail-Adresse ist nicht gültig.") . "</font>"; $_MAIN_MESSAGE .= "<br><font color=\"red\">" . ___("E-Mail wurde als fehlerhaft markiert.") . "</font>"; $_MAIN_MESSAGE .= " " . tm_icon($STATUS['adr']['statimg'][9], display($STATUS['adr']['status'][9])) . " \"<b>" . display($STATUS['adr']['status'][9]) . "</b>\""; $ADDRESS->setStatus($adr_id, 9); $ADDRESS->addMemo($adr_id, $check_mail[1]); } else {
//set status adresse, set editor... $author = "unsubscribe"; //always unsubscribe ... if ($ADDRESS->unsubscribe($ADR[0]['id'], $author)) { $ADDRESS->setAktiv($ADR[0]['id'], 0); $ADDRESS->addMemo($ADR[0]['id'], $memo); //unsubscribed if ($C[0]['unsubscribe_action'] == "blacklist" || $C[0]['unsubscribe_action'] == "blacklist_delete") { //add adr to blacklist if (!$BLACKLIST->isBlacklisted($ADR[0]['email'], "email", 0)) { //only_active=0, also alle, nicht nur aktive, was default waere $BLACKLIST->addBL(array("siteid" => TM_SITEID, "expr" => $ADR[0]['email'], "aktiv" => 1, "type" => "email")); } } if ($C[0]['unsubscribe_action'] == "delete" || $C[0]['unsubscribe_action'] == "blacklist_delete") { $ADDRESS->delAdr($ADR[0]['id']); } if ($C[0]['notify_unsubscribe'] == 1) { //email bei subscrption an admin.... $SubscriptionMail_Subject = "Tellmatic: Abmeldung / Unsubscribe"; $SubscriptionMail_HTML = ""; $SubscriptionMail_HTML .= "<br><b>" . $created . "</b>\n" . "<br>'<b>" . $memo . "</b>'\n" . "<br>AID: <b>" . $ADR[0]['id'] . "</b>\n" . "<br>\n" . "<br>Folgender Benutzer hat sich aus der Verteilerliste ausgetragen und moechte kein Newsletter mehr erhalten:\n" . "<br>The following user has unsubscribed:\n" . "<ul>Daten:\n" . "<li>e-Mail: <b>" . $ADR[0]['email'] . "</b></li>\n" . "<li>F0: <b>" . $ADR[0]['f0'] . "</b></li>\n" . "<li>F1: <b>" . $ADR[0]['f1'] . "</b></li>\n" . "<li>F2: <b>" . $ADR[0]['f2'] . "</b></li>\n" . "<li>F3: <b>" . $ADR[0]['f3'] . "</b></li>\n" . "<li>F4: <b>" . $ADR[0]['f4'] . "</b></li>\n" . "<li>F5: <b>" . $ADR[0]['f5'] . "</b></li>\n" . "<li>F6: <b>" . $ADR[0]['f6'] . "</b></li>\n" . "<li>F7: <b>" . $ADR[0]['f7'] . "</b></li>\n" . "<li>F8: <b>" . $ADR[0]['f8'] . "</b></li>\n" . "<li>F9: <b>" . $ADR[0]['f9'] . "</b></li>\n" . "</ul>\n" . "<br>\n" . "Code: <b>" . $code . "</b>\n" . "<br>\n" . "<br>\n" . "Der Datensatz wurde de-aktiviert und markiert (Unsubscribed) und wurde ab sofort aus der Empfaengerliste ausgeschlossen.\n" . "<br>The Address has been deactivated and marked as unsubscribed and will be excluded from recipients list.\n"; @SendMail_smtp($HOST[0]['sender_email'], $HOST[0]['sender_name'], $C[0]['notify_mail'], $HOST[0]['sender_name'], $SubscriptionMail_Subject, clear_text($SubscriptionMail_HTML), $SubscriptionMail_HTML, array(), $HOST); //fixed, now uses defaulthost //now use smtp directly //sendmail_smtp[0]=true/false [1]=""/errormessage if ($C[0]['unsubscribe_sendmail'] == 1) { //unsubscribe mail to subscriber $UnsubscribeMail_Subject = "Tellmatic: Abmeldung / Unsubscribe"; $_Tpl_UnsubscribeMail = new tm_Template(); $_Tpl_UnsubscribeMail->setTemplatePath(TM_TPLPATH);