Problem with multiple address

From: Date: Sun, 27 Aug 2000 10:46:52 +0000
Subject: Problem with multiple address
Groups: php.general 
Request: Send a blank email to php-general+get-13830@lists.php.net to get a copy of this message
Hi I got some solutions to this problem earlier, but i am struck again. I need to send mail to two people. But the mail returns back to me saying The Postfix program <vivek@madona.com, vivekk>: bad host/domain syntax: "madona.com, vivekk" If i remove one address it works fine. My code is here. I am running PHP 3.0.11 and Apache 1.3.9 on WinNT4.0 . Our SMTP server is a unix box. $To = "vivek@madona.com,vivekk@india.hp.com"; $From = "vivekk@india.hp.com"; $Headers = "From: " . $From . "\n"; $Headers .= "Return-Path: vivekk@india.hp.com\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 ignore this mail"; mail($To,$sub,"test",$Headers); Please help me. Regards Vivek K

« previous php.general (#13830) next »