Re: Not able to send mail to multiple addresses
| From: | Marko Vukovic' | Date: | Fri, 25 Aug 2000 13:23:12 +0000 |
| Subject: | Re: Not able to send mail to multiple addresses | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13659@lists.php.net to get a copy of this message | ||
Vivek K wrote:
>
> 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?
>
Ah, ok, it looks like a postfix problem to me if your syntax is correct.
Have you looked at the manpages for postfix and documentation at www.postfix.org?
How does the syntax in the headers look if you use a mail program such as elm or ns communicator to
send to multiple recipients.
I used that and just copied it for $To
Anybody else get this right with postfix?
--
Marko