PK

ADDRLIN : /home/anibklip/babekehospital.org/
FLL :
Current File : /home/anibklip/babekehospital.org/mail.php

<?php
//print_r($_POST);

if ($_POST){
	
	$mail_to = "mypratyush@gmail.com";	
		$websitename = "www.babekehospital.org";

		//======START WRITING MAIL TO SEND EMAIL===========
		$subject  = "Enquiry From Your Website " . $websitename ;
	
		$headers  = "MIME-Version: 1.0\r\n";
		$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
		$headers .= "From: Feedback-BABE KE HOSPITAL <info@babekehospital.org>\r\n";


		$message =	'<table border="0" width="70%" style="font-family: Verdana; font-size: 8pt; color: #000000" cellspacing="1"><tr><td width="100%" colspan="2"><b>Dear Sir/Madam <br>Following Information has been submitted from website Feedback/Enquiry page:</td></tr>';

		foreach($_POST as $key=>$value){
			$message .= '<tr><td width="30%" align="right"><br>'.strtoupper($key).' : </td><td width="70%"> '.$value.'</td></tr>';
		}
		$message .= "</table>";

		if (mail($mail_to, $subject, $message, $headers)){
			echo "<h1>Feedback/Enquiry has been sent successfully</h1>";	



		}else{
			echo "Sending Mail Failed......";
		}
	}
?>
<meta HTTP-EQUIV="REFRESH" content="1; url=http://babekehospital.org">


PK 99