RE: [PHP] Not able to send mail to multiple addresses
| From: | Wilkinson, Mark | Date: | Fri, 25 Aug 2000 09:31:40 +0000 |
| Subject: | RE: [PHP] Not able to send mail to multiple addresses | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-13633@lists.php.net to get a copy of this message | ||
Hi,
I think you have to have a space after the colon in each header ie..
To: person@domain.com
And also try seperating the email addresses with whitespace, not commas.
Also, am not sure about the \r - I think just \n will do.
Cheers.
Mark Wilkinson
http://www.wiggis.com
> -----Original Message-----
> From: Vivek K [mailto:vivekk@india.hp.com]
> Sent: 25 August 2000 10:18
> To: Andris Jancevskis
> Cc: PHP
> Subject: Re: [PHP] Not able to send mail to multiple addresses
>
>
> Hi
> No luck, my code is here
> <?
> $To = "vivekk@india.hp.com,vivek@madona.com";
> $From = "World Wide Web";
> $cc = "vivekk@india.hp.com";
> $Headers = "From:" . $From . "\r\n";
> $Headers .= "To:" . $To . "\r\n";
> $Headers .= "Cc:" . $cc . "\r\n";
> $Headers .= "Bcc:vivek@madona.com\r\n";
> $Headers .= "Content-Type: text/plain; charset=iso-8859-1\r\n";
> $Headres .= "X-Mailer: CBAS v1.0.09\r\n";
>
> $message = " Test message, please ignore";
>
> $sub = "Test Message, please ignore this mail";
> mail($To,$sub,$message,$Headers);
> ?>
> If i remove one address in $To then only $To will receive the
> mail. Now
> no one receiving the mail.
> is there anything wrong in this script?
>
> Vivek
>
> Andris Jancevskis wrote:
>
> > Add additional addresses to header part of message
> > "To:me@you.com\nBcc:me@me.zl\n".
> >
> > May be it helps,
> >
> > Andris
>
>
> --
> 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
>
>