Re: mail()
| From: | Christopher Allen | Date: | Tue, 20 Feb 2001 00:10:35 +0000 |
| Subject: | Re: mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40668@lists.php.net to get a copy of this message | ||
> I have a mail script that works fine except that it does not send to the
CC
> in my header options... nor will it send to multiple addresses can some
one
> please give me some advice on this... I've looked in the php manual as
well
> as other web pages but neither have an answer for me.
>
> $headers .= "cc:peterh@vfsa.com.au,peterh@vfsa-erentals.com.au\n"; // CC
to
> $mailsend = mail("$address", "$subject", "$body.", "$headers
\nContent-Type:
> text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit" );
> print ("$mailsend");
Is there supposed to be a "dot" after body?
Whats the result in $mailsend? have you tried with just the cc's and no
X-header info?
Have you tried just these two:
$headers = "mailto:cc:peterh@vfsa.com.au,
peterh@vfsa-erentals.com.au \n;
$mailsend = mail("$address", "$subject", "$body", "$headers
" );