CC and BCC in Php mail

I am learning how to format and send files from PHP.

I have not been able to locate how to encode CC and BCC emails into the form.

I started with an online tutorial, but am unable to locate the information.

I included the section of code where I believe I should be putting the information.

Any help is much appreciated.

<?php $from = "[email protected]"; // E-mail address of sender $to = $_POST["email"]; // E-mail address of receiver $subject = "Information you have requested from PriusKit.com"; // Subject of email $message = "Thank you for your interest in our kit. Attached is the information you requested. $headers = "From: " .$from; // boundary $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; // multipart boundary $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n"; $message .= "--{$mime_boundary}\n"; ?>
Sponsor our Newsletter | Privacy Policy | Terms of Service