cc is not delivering


cc is not delivering

我通过smtp服务器从php脚本发送电子邮件。我使用了这样的头数组:

$headers = array(
                'From'          => $from,
                'To'            => $email,
                'Cc'            => 'myemail@mydomain.com',
                'Return-Path'   => $sender,
                'Subject'       => $subject
                );
//sending process using smtp
$mail =& Mail::factory("smtp", $smtp_params);
$result = $mail->send($email, $headers, $body);

电子邮件已成功发送并发送到$email,我可以看到抄送标题myemail@mydomain.com在接收的报头中。但抄送未送达myemail@mydomain.com.

有人能告诉我为什么会发生这种事吗。我有我自己的域的SPF记录和一个SPF语法中的gmailmx服务器。问候

传递给$mail->send的第一个参数指定ALL收件人。

http://pear.php.net/manual/en/package.mail.mail.send.php

尝试:

$result = $mail->send(array($email, 'myemail@mydomain.com'), $headers, $body);