Ahh!  I forgot to meantion the \n at the end of the headers in my
original post...


-----Original Message-----
From: Marcus James Christian [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 11, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Mail Bcc to a $variable?


Like  this...

$headers = "From: Me <[EMAIL PROTECTED]>\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:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 10:15 AM
> To: [EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]>\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: [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]


-- 
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]

Reply via email to