RE: [PHP] Mail Bcc to a $variable?

From: Date: Wed, 11 Jul 2001 17:44:05 +0000
Subject: RE: [PHP] Mail Bcc to a $variable?
Groups: php.general 
Request: Send a blank email to php-general+get-57450@lists.php.net to get a copy of this message
Yeah, and it might even be picky about the spacing BCC: $recipients\n whenever I've had a mail problem, its solved by viewing the headers. See if your BCC is making it into the headers and then make sure its spaced like the other fields or the mail server/client may not be using the field. From php.net "Please also note that the cc: and bcc: headers are case sensitve and should be written as Cc: and Bcc: on Win32 systems" -----Original Message----- From: Marcus James Christian [mailto:marcus@mjchristianunlimited.com] Sent: Wednesday, July 11, 2001 10:37 AM To: php-general@lists.php.net Subject: Re: [PHP] Mail Bcc to a $variable? Like this... $headers = "From: Me <me@my.com>\nBCC:$recipients\n"; Or somewhere else? Thanks, Marcus Russell Chadwick wrote: > Try a newline at the end of $headers > > -----Original Message----- > From: Marcus James Christian [mailto:marcus@mjchristianunlimited.com] > Sent: Wednesday, July 11, 2001 10:15 AM > To: php-general@lists.php.net > Subject: [PHP] Mail Bcc to a $variable? > > Hello, > > Ok I've got a script going to a Bcc but can't seem to get it to work > when it's like this? > > <?php > include("mailinglist.inc"); > $recipients = "mailinglist.inc"; > $headers = "From: Me <me@my.com>\nBCC:$recipients"; > > include("password.inc"); > if($mailusername == $username && $mailpassword == $password); > { > mail($to, $subject, $bodytext, $headers); > }; > > ?> > > So how do I get mail to Bcc a variable like $recipients? Recipients > being a huge text file of hundreds of email addy's. > > -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 -- 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

« previous php.general (#57450) next »