RE: [PHP] Blind Carbon Copies? with mail ()???

From: Date: Wed, 11 Jul 2001 02:26:45 +0000
Subject: RE: [PHP] Blind Carbon Copies? with mail ()???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57291@lists.php.net to get a copy of this message
I'm not sure what you mean by that... You could easily do: $headers = "From: Optional Name of List <address@host.com>\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:marcus@mjchristianunlimited.com] Sent: Tuesday, July 10, 2001 9:48 PM To: Matthew Loff Cc: php-general@lists.php.net 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 = "devnull@myhost.com"; > $subject = "Subject of Message"; > $message = "blah blah blah..." > $headers = "From: Optional Name of List <address@host.com>\nBCC: > recip1@host.com,recip2@host2.com,recip3@host3.com"; > > mail($to, $subject, $message, $headers); > > That's how I do it... > > -----Original Message----- > From: Marcus James Christian [mailto:marcus@mjchristianunlimited.com] > Sent: Tuesday, July 10, 2001 9:17 PM > To: php-general@lists.php.net > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net To > contact the list administrators, e-mail: php-list-admin@lists.php.net -- 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

« previous php.general (#57291) next »