OverLord Shell
<?php session_start();
if($_SERVER['REQUEST_METHOD']!='POST' || empty($_POST)){echo "404.php";exit;}
require_once("db/conn.php");
$sid=$_SESSION['company_id'];
$uid=$_POST['uid'];
$cid=$_POST['cid'];
$pid=$_POST['pid'];
$email=$_POST['email'];
$mobno=$_POST['mobno'];
$message=nl2br($_POST['message']);
$message.="<br><p>Phone No: ".$mobno."</p>";
$enquiry=$_POST['message'];
$listr=$connection->query("SELECT company_enquiry_email,company_name FROM busdir_mst_all_company WHERE company_id=".$uid);
$listrow=$listr->fetch_assoc();
$listr->free();
$data = array(
'company_id' => $cid,
'my_company_id' => $uid,
'product_id' => $pid,
'phone' => $mobno,
'email' => $email,
'enquiry' => $enquiry,
'enquiry_date' =>date('Y-m-d H:i:s'),
'createdby' => $sid,
'createdon' => date('Y-m-d H:i:s')
);
$insertresult = dbRowInsert('busdir_mst_product_enquiry', $data);
$insertresultarr = explode("-",$insertresult);
//echo $insertresultarr[0];
if(trim($insertresultarr[0])=='success'){
$from= "business.maccia.org.in";
$to = $listrow['company_enquiry_email'];
$subject="MACCIA Business Network Product Review";
// $headers = 'From:'. $from. "\r\n" .
$headers = 'From: <no-reply@business.maccia.org.in>' . "\r\n" .
'Reply-To:'.$email . "\r\n" .
'MIME-Version: 1.0' . "\r\n" .
'Content-type: text/html; charset=iso-8859-1' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$body = '<html><body>';
$body .='<div class="gmail_quote"><div dir="ltr">On '.date('Y-m-d H:i:s').'<b>'.$listrow['company_enquiry_email'].'</b> Product Review <<a href="mailto:bni.'. $email. '" target="_blank"><wbr>'. $email. '</a> <wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div align="left">
<table border="0" cellpadding="" cellspacing="0" width="654">
<tbody><tr>
<td valign="top" align="left" colspan="2" width="652"><img border="1" style=" background: #f9f7f7;"
src="http://macciabusiness.ultraliant.com/images/logo3.png" width="650" height="105" class="CToWUd"></td>
</tr>
<tr>
<td width="231" valign="top" align="left" bgcolor="#CCCCCC">
<div align="left">
<table border="0" cellpadding="20" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%" ><font face="Arial" size="5" color="#808080"><b>'. $subject. '</b></font>
<p><font face="Arial" size="2">
<i><b>Date Referral Given:</b></i><br>'.date('Y/m/d ').'<br><br>
</font></p>
</td>
</tr>
</tbody></table>
</div>
</td>
<td width="419" valign="top" align="left">
<div align="left">
<table border="0" cellpadding="20" cellspacing="0">
<tbody><tr>
<td>
<p><font size="2" face="Arial"> <b>Congratulations! <br>You have Recived a new Product Review on MACCIA Business Network !</b></font></p>Be sure to follow up on this Product Review right away! <br><p><b>Product Review:</b><br/>'.$enquiry.' </p><p><font size="2" face="Arial">For additional information and to follow up with your Product Review,please log in to '.$from.'.<br><p><font size="2" face="Arial">Happy Connecting!</font><br>
</p></td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
<p><font face="Arial" size="4"> </font></p>
<p><font face="Arial" size="4"><br>
</font>
</p><div class="yj6qo"></div><div align="left">
<p>Regards,<br/>
'.$_POST['name'].'<br/>
</div>';
$body .= "</body></html>";
$mresponse = mail($to,$subject,$body,$headers);
}
echo $insertresultarr[0];
/*$to=$listrow['company_enquiry_email'];
$headers="MIME-Version: 1.0\r\n"."Content-type: text/html; charset=iso-8859-1\r\n"."From: \"".$email."\" <".$email.">\r\n";
if(@mail($to,$subject,$message,$headers))echo "success";*/
$connection->close();
?>
xRyukZ - Copyright 2k19