Send A Message
Compose your message in plain text or HTML below. HTML messages are sent in MIME format so that if a recipient cannot view the HTML email, they will see a plain text version automatically.
include('config.inc.php'); $connection = mysql_connect($db_server, $db_user, $db_password) or die("Could not connect : " . mysql_error()); mysql_select_db($db_name) or die("Could not select database"); $today = getdate(); $query = "SELECT COUNT(*) FROM mailinglist_subscribers WHERE confirmed = '1'"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $row = mysql_fetch_array($result); if (get_magic_quotes_gpc() == 1) // Quotes in the message are automatically being escaped { $message = stripslashes($_POST[message]); $subject = strip_tags(stripslashes($_POST[subject])); } else { $message = $_POST[message]; $subject = strip_tags($_POST[subject]); } if (isset($queue_size)) { $str = "$_POST[month]/$_POST[date]/$_POST[year] $_POST[hour]:$_POST[minute]$_POST[ampm]"; $utime = strtotime($str); } else { $utime = time(); } ?>
Your message has been queued for delivery and archived. You can view the delivery progress in the Archives.
"; } else { $message = stripslashes($message); $message .= "\n\n\n\nYou are receiving this message because you have opted in to the $list_name list."; $message .= " To unsubscribe, please follow this link: $unsub_url"; if ($_POST[format] == 1) { $boundary = md5(uniqid(time())); $headers = "MIME-Version: 1.0" . PHP_EOL; $headers .= "Content-type: multipart/alternative;" . PHP_EOL; $headers .= " boundary=\"$boundary\"" . PHP_EOL; $send_message = "you shouldn't see this ever" . PHP_EOL . PHP_EOL; $send_message .= "--$boundary" . PHP_EOL; $send_message .= "Content-type: text/plain;" . PHP_EOL; $send_message .= "Content-Transfer-Encoding: 7bit" . PHP_EOL . PHP_EOL; $send_message .= strip_tags($message) . "" . PHP_EOL; $send_message .= "--$boundary" . PHP_EOL; $send_message .= "Content-type: text/html;" . PHP_EOL; $send_message .= "Content-Transfer-Encoding: 7bit" . PHP_EOL . PHP_EOL; $send_message .= $message . "" . PHP_EOL; $send_message .= "--$boundary--" . PHP_EOL; } else { $send_message = $message; } $headers .= "From: $owner_email" . PHP_EOL . "Reply-To: $owner_email" . PHP_EOL . "Bcc: $subscribers" . PHP_EOL . "X-Mailer: NotOneBit.com Simple Mailer"; if(mail($to, $subject, $send_message, $headers)) { echo "Your message has been successfully sent and archived. You can view the message in the Archives.
"; } else { echo "Unable to send message. Check your server's error log for details.
"; } } } ?>Compose your message in plain text or HTML below. HTML messages are sent in MIME format so that if a recipient cannot view the HTML email, they will see a plain text version automatically.