$emails->next(); } $emails = new sql(); $emails->setQuery("select email from rex_email"); for ($i = 0; $i < $emails->getRows(); $i++) { $from = stripslashes($from); $subject = stripslashes($subject); $body = stripslashes($body); $to = stripslashes($emails->getValue("rex_email.email")); $mail = new mime_mail(); $mail->from = $from; $mail->headers = "Errors-To: " . $from; $mail->body = $body; // $mail->cc = stripslashes($cc); // $mail->bcc = stripslashes($bcc); $mail->prepare(); $mail->to = $to; $mail->subject = $subject; $mail->send(); $emails->next(); } // no form $form_show = false; $errmsg = "Ihre Eingaben wurden als Newsletter geschickt !"; } } if ($errmsg != "") { echo "<table border=0 cellpadding=5 cellspacing=1 width=770><tr><td colspan=2 class=warning>{$errmsg}</td></tr></table><br>"; } echo "\t<table border=0 cellpadding=5 cellspacing=1 width=770>\n\t<form action=index.php method=post>\n\t<input type=hidden name=page value=community>\n\t<input type=hidden name=subpage value=newsletter>\n\t<input type=hidden name=submit value=1>"; if ($form_show) {