Hi Guru's
I am trying to insert a url in email message which follows to a information related to that email address
my link works but some how i am not able to insert this link into message i.e in body
i can see this link when i exceute this file and i can follow the link also but i am not able to include in the body
Please help
Here is my code
<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";
$MESSAGE = "$url" ;
$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){
mail($field, $SUBJECT, $MESSAGE, $HEADERS);
print "Message sent to: $field";
}
}
mysql_close($linkID);
echo "<hr><b>MESSAGE DETAILS</b><hr>";
echo "<b>Subject:</b> $SUBJECT<br>";
echo "<b>Message:</b> $MESSAGE <br>";
$email_g = $field ;
$url = "show_cat.php?email_g=" .$field;
$ktsite = $field;
$url = "show_cat.php?email_g=" .$email_g;
$ktsite = $email_g;
do_html_url($url, $ktsite);
echo "<b>Message:</b><p>$MESSAGE";
echo do_html_url($url, $ktsite);
}
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 TYPE=BUTTON ONCLICK=\"document.FORM1.MESSAGE.value=''\" VALUE=Reset > <INPUT TYPE=SUBMIT VALUE=Send NAME=SEND > ";
echo "</FORM>";
}
?>
</BODY></HTML>