jollydonkey
Technical User
Hello,
I'm trying to use php to send a form to 2 cc recipients (the original form filler and an assigned person). While the $to person receives the email, the cc fields are blank. What could I possibly be doing wrong with my code below?
Thanks!
Cheers,
Dipesh.
I'm trying to use php to send a form to 2 cc recipients (the original form filler and an assigned person). While the $to person receives the email, the cc fields are blank. What could I possibly be doing wrong with my code below?
Code:
$email = $_POST['email'];
$cc = $_POST['cc'];
$headers = "From:$email\r\n";
$headers .= "CC:$cc\r\n";
$to = 'me@me.com';
$cc = $cc + "," + $email;
mail($to, $cc, $subject, $message, $headers);
Thanks!
Cheers,
Dipesh.