jollydonkey
Technical User
Hello,
I've got a peculiar situation.
I have a php form processing script (Windows platform) that is supposed to send a copy of a form submission via email to cc recipients. The script reaches everyone in the to: field, however, not on the cc: field.
On a Linux platform, this problem does not seem to occur and all cc recipients receive a copy of the email.
Here is the code:
Any reasons why cc recipients may not be getting a copy of the submission? Note, interestingly, cc recipients are listed properly in the cc field (they just don't get a copy). Note, it's been confirmed that messages are not getting trapped by a spam filter.
Thanks!
jd.
I've got a peculiar situation.
I have a php form processing script (Windows platform) that is supposed to send a copy of a form submission via email to cc recipients. The script reaches everyone in the to: field, however, not on the cc: field.
On a Linux platform, this problem does not seem to occur and all cc recipients receive a copy of the email.
Here is the code:
Code:
$email = $_POST['email'];
$cc = $_POST['cc'];
$ccCopy = $cc.",".$email;
$topic = $_POST['topic'];
$summary = $_POST['summary'];
$to = 'me1@me.com, me2@me.com, me3@me.com';
$subject = "$topic_output";
$message = "$summary_output";
$headers = array('From' => $email, 'To' => $to, 'CC' => $ccCopy, 'Subject' => $subject);
$host = "smtp.me.com";
$username = "smtp@me.com";
$password = "qwerty";
$smtp = Mail::factory('smtp', array('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password));
$mail = $smtp->send($to, $headers, $message);
Any reasons why cc recipients may not be getting a copy of the submission? Note, interestingly, cc recipients are listed properly in the cc field (they just don't get a copy). Note, it's been confirmed that messages are not getting trapped by a spam filter.
Thanks!
jd.