404 NOT FOUND

Path : /home/skmchikitchaalay/public_html/
File Upload :
Current File : /home/skmchikitchaalay/public_html/send_consultation.php

<?php

ob_start();

session_start();

error_reporting(0);

include('smpt_mail/smtpconfig.php');
include('smpt_mail/smtpclass.php');

function send_mail($strTo,$strFrom,$strSubject,$strContent){

	$to=$strTo;

	$subject=$strSubject; 

	$headers="MIME-Version: 1.0\r\n";

	$headers.="Content-type: text/html; charset=iso-8859-1\r\n";

	$headers.="From:".$strFrom."\r\n";
	
	$headers.="Bcc: info@c-infosoft.com"."\r\n";
	
	$isSent = mail($to,$subject,$strContent,$headers);

}

function check_value($val){
	
	if($val == 1){
		return "YES";
	}else{
		return 'NO';
	}
	
}

	
	$mailmsg ="";
					
	$mailmsg .= "<style>td { font-family:Arial; font-size:12px; }</style>";
	
	$mailmsg .= '<table cellpadding="0" cellspacing="0" border="0" width="700px"><tr><td bgcolor="#d5d5d5">
						<table cellpadding="7" cellspacing="1" border="0" width="100%">
                          <tr bgcolor="#f8f8f8"><td><strong> &nbsp; Basic Details</strong></td></tr>
						  <tr bgcolor="#FFFFFF">
                            <td>
                                  <table cellpadding="5" cellspacing="0" border="0" width="100%">
                                      <tr>
                                        <td>Full Name</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST["full_name"].'</strong></td>
                                        <td>Date of Birty</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['dob'].'</strong></td>
                                      </tr>
                                      <tr>
                                        <td>Occupation</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['occupation'].'</strong></td>
                                        <td>Sex</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['sex'].'</strong></td>
                                      </tr>
                                      <tr>
                                        <td>Nationality</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['nationality'].'</strong></td>
                                        <td>Marital Status</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['marital_status'].'</td>
                                      </tr>
                                      <tr>
                                        <td>Height (cm)</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['height'].'</td>
                                        <td>Weight (Kg)</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['weight'].'</td>
                                      </tr>
                                      <tr>
                                        <td>E-mail Id</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['email'].'</td>
                                        <td>Telephone</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['phone'].'</td>
                                      </tr>
                                   </table>
                               </td></tr>
                               
                               <tr bgcolor="#f8f8f8"><td><strong> &nbsp; Does your complaints aggravate During (please tick)</strong></td></tr>
                               
							   <tr bgcolor="#ffffff">
                                 <td><table cellpadding="5" cellspacing="0" border="0" width="0">
                                      <tr>
                                        <td>Exertion &nbsp; ( <strong>'.check_value($_REQUEST['is_exertion']).'</strong> ) &nbsp; &nbsp; &nbsp; &nbsp; </td>
                                        <td>Exercise &nbsp; ( <strong>'.check_value($_REQUEST['is_exercise']).'</strong> ) &nbsp; &nbsp; &nbsp; &nbsp; </td>
                                        <td>Normal Activity &nbsp; ( <strong>'.check_value($_REQUEST['is_normal_activity']).'</strong> ) &nbsp; &nbsp; &nbsp; &nbsp; </td>
                                        <td>Any other &nbsp; ( <strong>'.check_value($_REQUEST['is_any_other']).'</strong> ) &nbsp; &nbsp; &nbsp; &nbsp; </td>
                                      </tr>
                                      </table>
                                 </td>
                               </tr>
                               <tr bgcolor="#ffffff">
                                 <td>
                                 	<table cellpadding="5" cellspacing="0" border="0" width="100%">
                                      <tr>
                                        <td width="30%">Past Medical History</td>
                                        <td width="5%">:</td>
                                        <td width="65%"><strong>'.$_REQUEST['past_medical_history'].'</td>
                                      </tr>
                                      <tr>
                                        <td>Family History</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['family_history'].'</td>
                                      </tr>
                                      <tr>
                                        <td>Road Traffic Accidents</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['road_traffic'].'</td>
                                      </tr>
                                      <tr>
                                        <td>Surgery</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['surgery'].'</td>
                                      </tr>
                                      <tr>
                                        <td>Allergies to any Medicine or Food</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['allergies'].'</td>
                                      </tr>
                                   </table>
                                 </td>
                               </tr>
							   
                               <tr bgcolor="#f8f8f8"><td><strong>	&nbsp; Present complaint with duration (most serious problem first)</strong></td></tr>
							   
                               <tr bgcolor="#ffffff">
                                 <td>
                                 <table cellpadding="5" cellspacing="0" border="0" width="100%">
                                      <tr>
                                        <td width="30%">Symptoms with Duration</td>
                                        <td width="5%">: &nbsp; 1.</td>
                                        <td width="65%"><strong>'.$_REQUEST['symptoms1'].'</td>
                                      </tr>
                                      <tr>
                                        <td>&nbsp;</td>
                                        <td>&nbsp; &nbsp; 2.</td>
                                        <td><strong>'.$_REQUEST['symptoms2'].'</td>
                                      </tr>
                                      <tr>
                                        <td>&nbsp;</td>
                                        <td>&nbsp; &nbsp; 3.</td>
                                        <td><strong>'.$_REQUEST['symptoms3'].'</td>
                                      </tr>
                                      <tr>
                                        <td>&nbsp;</td>
                                        <td>&nbsp; &nbsp; 4.</td>
                                        <td><strong>'.$_REQUEST['symptoms4'].'</td>
                                      </tr>
									  <tr>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                      </tr>
                                      <tr>
                                        <td>If already diagnosed - details</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['diagnosed'].'</td>
                                      </tr>
									  <tr>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                      </tr>
                                      <tr>
                                        <td>Investigated details (if any)</td>
                                        <td>:</td>
                                        <td><strong>'.$_REQUEST['investigated'].'</td>
                                      </tr>
                                      <tr>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                      </tr>
                                   </table>
                                 
                                 </td>
                               </tr>
                               </table>
							   </td></tr></table>';
	
	$strTo ="consult@skmchikitchaalaya.com";
	
	$strFrom = $_REQUEST["email"];														

	$strSubject = "New Consultation Submitted on ".date('d-m-Y');

	$strContent = $mailmsg;
	
	//send_mail($strTo,$strFrom,$strSubject,$strContent);
	
	$SMTPMail = new SMTPClient ($SmtpServer, $SmtpPort, $SmtpUser, $SmtpPass, $strFrom, $strTo, $strSubject, $strContent);
	
	$SMTPChat = $SMTPMail->SendMail();

	$_SESSION['_msg'] = "Your submission successfully sent, We will contact you as soon as possible..!";
	
	header("location:./?page=consultation"); 

	die();
	

?>


404 NOT FOUND