如何使用PHP邮件程序脚本在电子邮件标题中获取密件抄送信息

I am using php mailer script for sending emails in my project. When i send mail with bcc using the below code

$mail->AddBCC(test@test.com)

The email received by test@test.com user but information content showed in the header of the email received doesn’t show BCC information as below.

Bcc: test@test.com 

How can I achieve it. Thanks in advance.

BCC information is automatically moved from BCC to RCPT field by the SMTP server. You will not see BCC fields in the recipient's mailbox.

You will find a good answer to a similar question here: https://stackoverflow.com/a/2750359/239599