Samsu
Samsu

Reputation: 61

How to get the bcc information in email header using PHP mailer script

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

$mail->AddBCC([email protected])

The email received by [email protected] user but information content showed in the header of the email received doesn’t show BCC information as below.

Bcc: [email protected] 

How can I achieve it. Thanks in advance.

Upvotes: 5

Views: 7693

Answers (2)

Cristea
Cristea

Reputation: 1077

If you use mailhog, click on the Show headers an you will see the cc and bcc

enter image description here

Upvotes: 0

naivists
naivists

Reputation: 33531

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

Upvotes: 7

Related Questions