...

View Full Version : Modify to stop send email



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);
//////////////////////////
}
////////////////////////////////////////////////////////////
/////////////////////////////////////////////////

flann
06-18-2006, 09:32 PM
which table has there email, and which table has yours?

stevan
06-18-2006, 09:59 PM
I think this is where the script get the info of the member


But where is the send line


//Gets member info
$rs0=mysql_fetch_array(mysql_query("select * from reciprocal_links where id=" . $id));

flann
06-18-2006, 10:55 PM
then it looks like this would be the send line for that.
mail($to,$subject,$body,$header);

test it and see.

stevan
06-18-2006, 11:07 PM
Thxs Very MUCH :thumbsup:

I did not see that line

Brain dead today:confused:

Steve



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum