Re: Not able to send mail to multiple addresses

From: Date: Fri, 25 Aug 2000 09:18:25 +0000
Subject: Re: Not able to send mail to multiple addresses
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-13631@lists.php.net to get a copy of this message
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

« previous php.general (#13631) next »