I send email from php script by smtp server. I have used the header array like this:
$headers = array(
'From' => $from,
'To' => $email,
'Cc' => '[email protected]',
'Return-Path' => $sender,
'Subject' => $subject
);
//sending process using smtp
$mail =& Mail::factory("smtp", $smtp_params);
$result = $mail->send($email, $headers, $body);
The email is sent successfully and delivered to $email and I can see the cc header to [email protected] in the received header. But the cc is not delivered to [email protected].
Can anybody tell me why this is happening. I have SPF record for my own domain and gmail mx server in one SPF syntax. Regards
First argument passed to
$mail->send
specifies ALL recipients.http://pear.php.net/manual/en/package.mail.mail.send.php
Try: