Forum Moderators: coopster
But, in the email I receive, I look at the header information (View-Options in MS Outlook), and it displays the Bcc field and my email address. Is there something I can do to prevent the BCC showing in the header info? Do I need to add other header details?
The code that prepares the header is simply:
$header = "From: $email \n";
$header .= "Bcc: $bccemail \n";
The header details in the received email shows...
Date: Wed, 16 Mar 2005 21:49:14 +0000
To: <clients email address>
Subject: <subject>
From: name@sender.com
Bcc: <my email address>
X-HSTID:19555
Thanks
I tried it with 2 different email addresses for me - one as To: and other as BCC: but the To: email has headers which displays the BCC email address, which should not happen. There is also a strange header which is - X-HSTID: 19555 . Do you know what that is?
I also tried using the same form on a different server, which works fine. So, I think the client's server must be a different kind - for example, I had to change the code \r\n to just be \n in order to work on the clients server. Otherwise the Bcc code actually shows up in the body of the email.
INteresting, I tried it with a few of my emails and it didn't come up in the headers.
not sure why that one is. X headers (that start with X-) are just extra info, they are added all over the place by the mail server and its associated programs.
I can suggest that if you really want a copy of this email you have the option of just calling the mail function again and sending the message to yourself as well.