请教各位mb_send_mail来发邮件,怎么指定bcc的地址?mb_send_mail($to, $mailtitle, $mailbody, "From:".$from, "-f ".$from)上面这样的写法能够正常发送邮件,但是bcc应该加在哪里呢?

解决方案 »

  1.   

    bcc应该加在 $to 后面,用逗号分隔
      

  2.   

    bool mb_send_mail ( string $to , string $subject , string $message [, string $additional_headers = NULL [, string $additional_parameter = NULL ]] )From, Cc, Bcc. 这些写在 header 的下面$header的写法
    $headers=’From: [email protected]’.”\r\n”.’Reply-To: [email protected]’.” \r\n”.’Cc: [email protected]’;具体看文档
    http://cn.php.net/mb_send_mail