"; for($k=1;$k<=$row->TotPages;$k++) $artBody .= "
BasePath/$row->ItemName$k." . ($row->ImageExtension!=''?$row->ImageExtension:"gif") . "\">"; $artBody .= "
"; //add From: header $From = $_POST["txtSenderName"] . " <" . $_POST["txtSenderEmail"] . ">"; $headers = "From: $From\r\nBcc: Deeneislam \r\n"; //specify MIME version 1.0 //$headers .= "MIME-Version: 1.0\r\n"; //unique boundary //$boundary = uniqid("HTMLCONT"); //tell e-mail client this e-mail contains//alternate versions //$headers .= "Content-Type: multipart/mixed; boundary = $boundary\r\n\r\n"; $headers .= "Content-type: text/html\r\n"; //plain text version of message /*$body = "--$boundary\r\n" . "Content-Type: text/plain; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $body .= chunk_split(base64_encode("As Salam O Alaikum,\r\nYour friend $From has sent you an article $row->Title please read it at: http://www.deeneislam.com/ur/main.php?CID=$CID\r\nFind more at http://www.Deeneislam.com\r\nWassalam\r\nDeeneislam.com Team")); //HTML version of message $body .= "--$boundary\r\n" . "Content-Type: text/html; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $body .= chunk_split(base64_encode("As Salam O Alaikum,\r\n
Your friend " . $_POST["txtSenderName"] . " has sent you the following article, which can also be read at: $row->Title\r\n
Find more at http://www.Deeneislam.com\r\n
Wassalam\r\n
Deeneislam.com Team\r\n
$artBody")); */ $body = ""; $body .= "As Salam O Alaikum,\r\n
Your friend " . $_POST["txtSenderName"] . " has sent you the following article, which can also be read at: $row->Title\r\n
Find more at http://www.Deeneislam.com\r\n
Wassalam\r\n
Deeneislam.com Team\r\n
$artBody"; $body .= ""; //send message mail($_POST["txtToEmail"], "$row->Title", $body, $headers); } } elseif($_POST["iPage"]!="") //iPage Supplied { $artBody = "
"; $iPage = $_POST["iPage"]; $rParent = $_POST["rParent"]; $rChild = $_POST["rChild"]; $Muqarrir = $_POST["Muqarrir"]; $rArgs = "rParent=$rParent&rChild=$rChild&Muqarrir=$Muqarrir"; if(EndsWith($iPage,".php")) $input = implode('', file("http://www.deeneislam.com/$iPage?$rArgs")); else $input = implode('', file($_SERVER["DOCUMENT_ROOT"] . $iPage)); $input = preg_replace('/(]*href=["|?])([^#][^http][^mailto].*?)([?|"][^>]*>)/is','$1http://www.deeneislam.com/$2$3',$input); $input = preg_replace('/(]*src=[?|"])([^http].*?)([?|"]*>)/is','$1http://www.deeneislam.com/$2$3',$input); // $input = str_replace("=/ur/","=http://www.deeneislam.com/ur/",$input); // $input = str_replace("=\"/ur/","\"=http://www.deeneislam.com/ur/",$input); $artBody .= $input; $From = $_POST["txtSenderName"] . " <" . $_POST["txtSenderEmail"] . ">"; $headers = "From: $From\r\nBcc: Deeneislam \r\n"; $headers .= "Content-type: text/html\r\n"; $body = ""; $body .= "As Salam O Alaikum,\r\n
Your friend " . $_POST["txtSenderName"] . " has sent you the following link, which can also be read at: http://www.deeneislam.com/ur/main.php?iPage=$iPage$rArgs\r\n
Find more at http://www.Deeneislam.com\r\n
Wassalam\r\n
Deeneislam.com Team\r\n
$artBody"; $body .= ""; //send message mail($_POST["txtToEmail"], "DeenEIslam.com Link(http://www.deeneislam.com" . $iPage . ")" , $body, $headers); } ?>
Email has been sent successfully, to close window click here