i want to send 2 persons mailid in this mail

<?php 
$con = mysql_connect("localhost","root",""); 
if (!$con) 
  { 
  die('Could not connect: ' . mysql_error()); 
  } 

mysql_select_db("users", $con); 

$sql="INSERT INTO entryform (Name,Department, Problem, Ext_no, Ip_Add, Remark, Email ,status) 
VALUES ('$_POST[Name]','$_POST[Department]','$_POST[Problem]','$_POST[Ext_no]','$_POST[Ip_Add]','$_POST[Remark]','$_POST[Email]','$_POST[status]')"; 

if (!mysql_query($sql,$con)) 
  { 
  die('Error: ' . mysql_error()); 
  } 
  echo ""; 


mysql_close($con); 




$to = "SUPPORT.KAIZEN@rpr.jspl.com"; 

$subject = $_POST['Problem'];
$message = " Dear Sir,
                        Your Complaint Deatils is :--



  Name: " . $_POST['Name'] . " 

 Department: " . $_POST['Department']. " 

 Problem:".$_POST['Problem'] . "

 Ext no. : " . $_POST['Ext_no'] ."

 IP Add: " . $_POST['Ip_Add'] . "

 Remark: " . $_POST['Remark'] . "

 Email: " . $_POST['Email'] . "

 status: " . $_POST['status'] ;

 $message.=


 " 



 Thank you



 Regards,
Helpdesk Raipur

 ";


$sent = mail($to,$subject, $message  ) ;  

if($sent)  
{print "  "; } 
else  
{print "We encountered an error sending your mail"; } 

?>

If you want to send that mail to two persons, then add a second email address in $to separated by a semi-colon.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.