Jump to content

BCC: header not working.


denoteone

Recommended Posts

My mail function is working but the BCC's in the header are not. Am I missing something. below are my headers.

 

$to = $_POST['email_address'];

$subject = 'Thank You for requesting info about STRATACACHE';

$random_hash = md5(date('r', time()));

$headers = "From: [email protected]\r\nReply-To: [email protected]\r\n";

$headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-".$random_hash."\"\r\n";

$headers .= "BCC: [email protected],[email protected]\r\n";

$attachment = chunk_split(base64_encode(file_get_contents('pdfs/'. $_POST['file'] .'')));

Link to comment
https://forums.phpfreaks.com/topic/208950-bcc-header-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.