stevan
06-18-2006, 07:53 PM
I have this script I use and it sends to the member and and to me I want to stop the sendint to the member as I want to approve there site before they get the email that it sends after i approve it
I can not figure it what to remove to stop the one they get BUT keep the one I get
THXS Steve
//////////////////// SEND MAIL TO MEMBER/ bcc to admin ////////////////
//Gets member info
$rs0=mysql_fetch_array(mysql_query("select * from reciprocal_links where id=" . $id));
$rs1=mysql_fetch_array(mysql_query("select * from sbreciprocal_cats where id=" . $rs0["cid"]));
$category=$rs1["catname"];
//Reads email to be sent
$sql = "SELECT * FROM reciprocal_mails where id=1" ;
$rs_query=mysql_query($sql);
if ( $rs=mysql_fetch_array($rs_query) )
{
$from =$rs["fromid"];
$to = $rs0["email"];
$subject =$rs["subject"];
$header="From:" . $from . "\r\n" ."Reply-To:". $from ;
$body=str_replace("<category>", $category,str_replace("<email>", $rs0["email"],str_replace("<url>", $rs0["link"],str_replace("<reciprocallink>", $rs0["reciprocallink"],str_replace("<title>", $rs0["title"],str_replace("<urldescription>", $rs0["description"], $rs["mail"]) ))))) ;
mail($to,$subject,$body,$header);
// Reads Site config//////////////////
$rs_query=mysql_query("Select * from reciprocal_config" );
$rs_a=mysql_fetch_array($rs_query);
$to1 = $rs_a["email"];
mail("cc:" . $subject,$body,$header);
//////////////////////////
}
////////////////////////////////////////////////////////////
/////////////////////////////////////////////////
I can not figure it what to remove to stop the one they get BUT keep the one I get
THXS Steve
//////////////////// SEND MAIL TO MEMBER/ bcc to admin ////////////////
//Gets member info
$rs0=mysql_fetch_array(mysql_query("select * from reciprocal_links where id=" . $id));
$rs1=mysql_fetch_array(mysql_query("select * from sbreciprocal_cats where id=" . $rs0["cid"]));
$category=$rs1["catname"];
//Reads email to be sent
$sql = "SELECT * FROM reciprocal_mails where id=1" ;
$rs_query=mysql_query($sql);
if ( $rs=mysql_fetch_array($rs_query) )
{
$from =$rs["fromid"];
$to = $rs0["email"];
$subject =$rs["subject"];
$header="From:" . $from . "\r\n" ."Reply-To:". $from ;
$body=str_replace("<category>", $category,str_replace("<email>", $rs0["email"],str_replace("<url>", $rs0["link"],str_replace("<reciprocallink>", $rs0["reciprocallink"],str_replace("<title>", $rs0["title"],str_replace("<urldescription>", $rs0["description"], $rs["mail"]) ))))) ;
mail($to,$subject,$body,$header);
// Reads Site config//////////////////
$rs_query=mysql_query("Select * from reciprocal_config" );
$rs_a=mysql_fetch_array($rs_query);
$to1 = $rs_a["email"];
mail("cc:" . $subject,$body,$header);
//////////////////////////
}
////////////////////////////////////////////////////////////
/////////////////////////////////////////////////