Somehow i am not abe to get url
i can see when i preview but its not going in the mail
how can i interpret
<html>
<head>
<title>IT Phone List</title>
</head>
<BODY>
<?php
require_once("site_sc_fns.php");
if(empty($SEND)){$SEND="";}
switch($SEND){
case "Send":
if(!empty($MESSAGE)){
if(empty($SUBJECT)){$SUBJECT= " ";}
$HEADERS = "MIME-Version: 1.0\r\n";
$HEADERS .= "Content-type: text/html; charset=iso-8859-1\r\n";
$HEADERS .= "From: Info <[ REPLY EMAIL ADDRESS ]>\r\n";
/ [ REPLY EMAIL ADDRESS] should be replaced with the appropriate email address /
/ This script is based on pulling email addresses from a MySQL user database The code below should be changed to the appropriate information /
$SUBJECT = "IT Phone List Update.\r\n";
$linkID = mysql_connect("localhost", "", "");
mysql_select_db(virus, $linkID);
$obRS = mysql_query("SELECT email_g FROM phlistnew", $linkID);
while($row = mysql_fetch_row($obRS)){
foreach ($row as $field){
$url = "show_cat.php?email_g=" .$field ;
$ktsite = $field ;
do_html_url($url, $ktsite);
$MESSAGE = "do_html_url($url, $ktsite)";
mail($field, $SUBJECT, $MESSAGE, str_replace('[$MESSAGE]',$field,$HEADERS), $HEADERS);
print "Message sent to: $field <br>" ;
}
}
echo "<hr><b>MESSAGE DETAILS</b><hr>";
echo "<b>Subject:</b> $SUBJECT<br>";
echo "<b>Message:</b> $url <br>";
}
break;
default:
echo "<FORM ACTION=itmail.php METHOD=GET NAME=FORM1 >";
echo "Please type in html code below.<BR>";
// echo "<TEXTAREA NAME=MESSAGE STYLE='width:500;height:300' WRAP=off > </TEXTAREA><BR>";
echo "<INPUT NAME=MESSAGE > ";
echo "<INPUT TYPE=BUTTON ONCLICK=\"document.FORM1.MESSAGE.value=''\" VALUE=Reset > <INPUT TYPE=SUBMIT VALUE=Send NAME=SEND > ";
echo "</FORM>";
}
?>
</BODY></HTML>$MESSAGE = "do_html_url($url, $ktsite)";