Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8390821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:06:21+00:00 2026-06-09T19:06:21+00:00

I read that All custom headers (like From, Cc, Bcc and Date) are supported

  • 0

I read that

All custom headers (like From, Cc, Bcc and Date) are supported

from PHP mail() reference, but how do I actually implement this in my code? i.e. I don’t want any recipient to see the other e-mails… ever.

Something like:

<?php
$to = "someguy@somesite.com, another@abc.com, someother@def.com";
$subject = "test message";
$msg = "this is a test";
$headers = "Bcc"; // <-- this?

if (mail($to, $subject, $msg, $headers)) 
    echo "message sent";
else 
    echo "uh oh";
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:06:23+00:00Added an answer on June 9, 2026 at 7:06 pm

    Look at the examples on the page.

    Here’s one…

    $headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
    $headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
    $headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
    $headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";
    

    So you just add comma separated email addresses after Bcc: in the header.

    Here’s one with a loop that will add addresses from the array $recip to BCC:

    $headers.="Bcc: "; 
    while($count < $count_recip){ 
        $headers.=$recip[$count].", "; 
        $count ++; 
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read all of Microsoft's documentation but their claim is that it should work
I read that Nodes () emits all the nodes including sub. and DescendantNodes ()
To create a daemon I have read somewhere that in order to close all
First of all let me tell you that i have read the following questions
Almost all of the examples in the jQuery tutorials that I've read, usually use
I know that this question has been asked several times and I've read all
I read some articles about Comet tech. All of them mentioned that the long-life
we've created a custom webpart to display announcements from all lists a user has
I want to use MOSS 2007's single sign-on feature, but read that the server
I am using a custom text box (read only) that consist of 2 WebBrowser

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.