bcc php email code

  • Answered
I use this code to send multiple auto response emails from a php form. Ideally, I'd like to send them bcc. Any suggestions on how to write the code so that I can send it to myself as the to: and bcc: to everyone else? formvars[$e])) { $receipient .= $this->formvars[$e].','; } } $receipient = rtrim($receipient,","); return true; } } ?>
Hello chrisleb, Thank you for your question about sending a bcc mail from PHP. In the PHP guide on the mail function, it discusses using an "additional_headers" string to add extra headers: "This is typically used to add extra headers (From, Cc, and Bcc). " Just like any problem, there are many coding solutions. This means you will have to test, and work with the code to get it to work If you have any further questions, feel free to post them below. Thank you, John-Paul