[thelist] php mail cc
Joel D Canfield
joel at streamliine.com
Fri Feb 23 10:01:08 CST 2007
any tips on why this doesn't actually send the CC?
<?php
if(isset($_POST['submit'])) {
$to = "joel at streamliine.com";
$subject = "Website contact";
$name_field = $_POST['RealName'];
$email_field = $_POST['Email'];
$telephone_field = $_POST['Telephone'];
$othercomments_field = $_POST['OCQ'];
$headers = "From: realaddress at realsite.com";
$headers .= "Cc: spinhead at gmail.com";
$headers .= "Reply-To: realaddress at realsite.com";
$body = "From:\n $name_field\n\nEmail:\n
$email_field\n\nPhone:\n $telephone_field\n\nOther Comments or
Questions:\n $othercomments_field\n";
mail($to, $subject, $body, $headers);
}
?>
I rarely use PHP (I'm learning, I promise) so I'm sure I'm missing
something simple and obvious.
thanks
joel
More information about the thelist
mailing list