Re: Doubt in mail()
| From: | Vivek K | Date: | Thu, 31 Aug 2000 06:05:51 +0000 |
| Subject: | Re: Doubt in mail() | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2326@lists.php.net to get a copy of this message | ||
Hi
Code is here.
Our SMTP server is unix box
$To = "vivek@madona.com,vivekk@india.hp.com";
$From = "vivekk@india.hp.com";
$Headers = "From: " . $From . "\n";
$Headers .= "MIME-Version: 1.0"."\n" ;
$Headers .= "Content-Type: text/plain; charset=iso-8859-1\n";
$Headers .= "Content-Transfer-Encoding: 8bit" . "\n";
$Headres .= "X-Mailer:PHP/".phpversion();
$message = "Test message, please ignore";
$sub = "Test Message, please igniore this mail";
mail($To,$sub,$message,$Headers);
The mail is returning back to me, The error is
The Postfix program
<vivekk@madona.com, vivekk>: bad host/domain syntax: "madona.com, vivekk"
Jason Brooke wrote:
> Copy and paste the exact part which is failing
>
> jason
>
> > Hi
> > I am using Apache 1.3.9 and PHP 3.0.11 on WinNT4.0.
> > mail() function is working fine for one email address but it is failing
> > for multiple address.
> > I tried all combinations for separating the recipients, mail will just
> > come back to me.
> > i.e., comma, space, pipe.. nothing seems to be working. Will PHP 3.0.11
> > supports multiple recipients?
> >
> > regards
> > Vivek K