how to acheive this, when the user submits the form a email sends to his email with $to and i have CC billing@somesite.com now on $to i do not wish to send the credit card number but on CC i wish to get the full number but how do i get it done?
function sendMail($fData) {
$orderid = randomPrefix(6);
$ip = getRealIpAddr();
date_default_timezone_set('Asia/Calcutta');
$date = date('m/d/Y', time());
$time = date('h:i:s a', time());
$to = $fData['email'];
$fname = $fData['fname'];
$lname = $fData['lname'];
$address1 = $fData['address1'];
$address2 = $fData['address2'];
$country = $fData['country'];
$city= $fData['city'];
$state = $fData['state_p'];
$phone = $fData['phone'];
$card_holder = $fData['cname'];
$card_type = $fData['ctype'];
$card_number = $fData['cnumber'];
$expiry_d = $fData['xdate'];
$expiry_m = $fData['xmonth'];
$expiry_y = $fData['xyear'];
$cvv = $fData['cvv'];
$headers = "From: somesite.com <sales@somesite.com>\r\n";
$headers .= "Cc: billing@somesite.com\r\n";
$headers .= "Reply-To: <sales@somesite.com>\r\n";
$headers .= "Return-Path: sales@somesite.com\r\n";
$headers .= 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'Content-type: text/html; charset=us-ascii' . "\r\n";
'X-Mailer: PHP/' . phpversion();
$message = "<p align=\"center\"><font size=\"+1\" weight=\"bold\" width=\"600px\" color=\"orange\">Order Confirmation!</font><hr color=\"#000000\" size=\"2\"></p>
Dear $fname $lname, <br/><br/>\n\n
Your order has been successfully placed <br/><br/><br/>\n\n\n
<h2>Billing Details</h2> <br/>\n\n
<b>Order ID:</b> $orderid <br/> <br/>\n\n
<b>Name:</b> $fname $lname<br/> <br/>\n\n
<b>Address Line 1:</b> $address1 <br/><br/>\n\n
<b>Address Line 2:</b> $address2 <br/><br/>\n\n
<b>Country:</b> $country <br/><br/>\n\n
<b>City:</b> $city <br/><br/>\n\n
<b>State/Province:</b> $state <br/><br/>\n\n
<b>Phone Number:</b> $phone <br/><br/>\n\n
<b>E-mail Address:</b> $to <br/><br/>\n\n\n
<h2>Credit Card Details</h2> <br/>\n\n
<b>Name on the Card:</b> $card_holder <br/><br/>\n\n
<b>Credit Card Number:</b> $card_number <br/><br/>\n\n
<b>Expiration Date:</b> $expiry_d/$expiry_m/$expiry_y <br/><br/>\n\n
<b>Cvv Number:</b> $cvv <br/><br/>\n\n
<b>Card Type:</b> $card_type <br/><br/>\n\n\n
Regards, <br/> \n
somesite.com <br/>\n<br/>\n
<hr color=\"#000000\" size=\"2\">
<p align=\"center\">
<font size=\"-2\" width=\"600px\" color=\"#333\"> <b>Order placed by:</b> $ip <b>on</b> $date <b>around</b> $time</font>\n
<br/>
<font size=\"-2\" weight=\"bold\" width=\"600px\" color=\"#615F5F\"> © copyrights <a href=\"http://somesite.com\" target=\"_blank\">www.somesite.com</a> 2012-2013</font></p><br/>\n";
$subject = "(Order Confirmation) - somesite.com!";
mail($to, $subject, $message, $headers);
}