Location: PHPKode > scripts > PHP Reciprocial Links > php-reciprocial-links/admin/sendmailall.php
<?
include_once("logincheck.php");
include_once("myconnect.php");
$sql="Select * from reciprocal_links";
$rs0=mysql_query($sql);
	$cnt=0;
	while ( ($rs=mysql_fetch_array($rs0)) )
{							
			 $from =$_REQUEST["from"];
			 $to = $rs["email"];
			 $subject = $_REQUEST["subject"];
			 $body = $_REQUEST["message"];
		     $header="From:" . $from . "\r\n" ."Reply-To:". $from  ;
			 @mail($to,$subject,$body,$header);
}
header("Location: ". "adminhome.php?msg=" . urlencode("Your Message has been sent to all link partners!") );
die();
?>
Return current item: PHP Reciprocial Links