Re: Not able to send mail to multiple addresses
| From: | Vivek K | Date: | Fri, 25 Aug 2000 12:21:20 +0000 |
| Subject: | Re: Not able to send mail to multiple addresses | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13653@lists.php.net to get a copy of this message | ||
Hi
Still unable to figure out.
This time i changed the code
<?
$To = "vivek@madona.com, vivekk@india.hp.com";
$From = "World Wide Web";
$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 igniore this mail";
mail($To,$sub,$message,$Headers);
?>
this time it returned to me saying
The Postfix program
<"vivekk@england.com,vivek"@madona.com, vivekk>: bad host/domain syntax:
"madona.com, vivekk"
Any idea?
Vivek K
Marko Vukovic' wrote:
> Vivek K wrote:
> > > >
> > > > Hi
> > > > No luck, my code is here
> > > > <?
> > > > $To = "vivekk@india.hp.com,vivek@madona.com";
>
> try with a single space separating entries
>
> $To = "vivekk@india.hp.com, vivek@madona.com";
>
> this works for me
> --
> Marko