I'm not sure what you mean by that...
You could easily do:
$headers = From: Optional Name of List [EMAIL PROTECTED]\nBCC: .
$bcc_addresses;
(The dot . will concatenate the strings together)
If you didn't want the From: Header in there, you could always just:
$headers = BCC: . $bcc_addresses;
...or if you had the BCC e-mail addresses in one-dimensional array...
$headers = BCC: . implode(,, $bcc_emails_array);
Best of luck!
-Original Message-
From: Marcus James Christian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 9:48 PM
To: Matthew Loff
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Blind Carbon Copies? with mail ()???
Man that is awesome!
Can the Bcc in the headers somehow be a $variable ?
Thanks,
Marcus
Matthew Loff wrote:
(Have the To: address be yourself, or a mail account that simply dumps
to /dev/null)
$to = [EMAIL PROTECTED];
$subject = Subject of Message;
$message = blah blah blah...
$headers = From: Optional Name of List [EMAIL PROTECTED]\nBCC:
[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED];
mail($to, $subject, $message, $headers);
That's how I do it...
-Original Message-
From: Marcus James Christian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 9:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Blind Carbon Copies? with mail ()???
Hello,
I want to send Blind Carbon Copies or Bcc: to a huge 100-200 person
mailing list.
But the PHP mail() has a to, subject, body format.
How can I get a Bcc: in there?
Thanks,
Marcus
--
Marcus James Christian - UNLIMITED -
Multimedia Internet Design
http://mjchristianunlimited.com
Proudly presents the music of CHROMATICUS
at http://chromaticus.com
and http://artists.mp3s.com/artists/275/chromaticus.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Marcus James Christian - UNLIMITED -
Multimedia Internet Design
http://mjchristianunlimited.com
Proudly presents the music of CHROMATICUS
at http://chromaticus.com
and http://artists.mp3s.com/artists/275/chromaticus.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]