" . $GLOBALS["email_messages"] ["pleasenote"] . "
"; } if (!$enable_email_sending) { echo "

" . $GLOBALS["email_messages"] ["noemailssend"]; } if (!$show_email_notification ) { echo "

" . $GLOBALS["email_messages"] ["usercantreg"]; } } if ($send != "yes") { print '

'; print'

' . $lang_email_admin_sendermail . ':


' . $lang_email_admin_subject . ':


' . $lang_email_admin_message . ':
 

'; $lines = explode("%", $content); echo "
" . $GLOBALS["email_messages"] ["click"] . "" . $GLOBALS["email_messages"] ["here"] . "" . $GLOBALS["email_messages"] ["listof"] . "
"; echo ""; } $mailheaders = $GLOBALS["email_messages"] ["from"] . " $sender\n"; $mailheaders .= $GLOBALS["email_messages"] ["replyto"] . " $sender\n"; if ($send == "yes") { $end = "\r\n\r\n -- \r\n" . sprintf($email_bottomtext, "http://" . get_server_name() . ":" . $_SERVER['SERVER_PORT'] . $twg_root); // $end = "test"; // $end = stripslashes($end); $htmlend = "--
" . sprintf($email_bottomtext, "http://" . get_server_name() . ":" . $_SERVER['SERVER_PORT'] . $twg_root) . "
"; $message = "" . stripslashes($message); $subject = stripslashes($subject); $lines = explode("%", $content); $offset = 0; foreach ($lines as $l) { $l = decryptEmail($l,$offset++) ;// decrypt email if ($l != "") { if ($enable_email_sending) { mail ($l, '=?UTF-8?B?'.base64_encode($subject).'?=', str_replace("\n", "\r\n", $message . $end), $mailheaders.'MIME-Version: 1.0' . "\n" . 'Content-type: text/plain; charset=UTF-8' . "\n"); } } } $message = nl2br($message); if (!$enable_email_sending) { print $GLOBALS["email_messages"] ["emailsendfalse"] . "
 
"; } print "" . $lang_email_admin_sent . "
 
"; print "
"; print "" . $lang_email_admin_from .": ". $sender . "
"; print "$lang_email_admin_subject: $subject\n"; print "
$lang_email_admin_message:
$message
$htmlend"; print "
"; /* echo "
" . (count($lines)-1) . " Subscribers:
"; foreach ($lines as $l) { $l = decryptEmail($l,$offset++) ;// decrypt email if ($l != "") { echo $l . "
"; } } */ } print '
'; echo "
"; function checkmail($string) { return preg_match("/^[^\s()<>@,;:\"\/\[\]?=]+@\w[\w-]*(\.\w[\w-]*)*\.[a-z]{2,}$/i", $string); } ?>