Re: Mail Bcc to a $variable?
| From: | Lasse | Date: | Wed, 11 Jul 2001 18:28:16 +0000 |
| Subject: | Re: Mail Bcc to a $variable? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57459@lists.php.net to get a copy of this message | ||
I don't think variable substitution works within quotes when not used with
echo...
Try (I think you also a space after BCC:)
> $headers = "From: Me <me@my.com>\nBCC: ".$recipients;
instead of
> $headers = "From: Me <me@my.com>\nBCC:$recipients";
and you should be fine....
Are $recipients ;-seperated properly?
--
Lasse
"Marcus James Christian" <marcus@mjchristianunlimited.com> wrote in message
news:3B4C899D.558C198B@mjchristianunlimited.com...
> 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
>
>