I am using this:
/ recipients /
$email_list = "xxxxxx@xxxxland-corp.com" . "; " ; // note the comma
$email_list .= "wxxxxxk@yahoo.com";

/ To send HTML mail, you can set the Content-type header. /
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

/ additional headers /
$headers .= "To: Warren <xxxxxx@xxxxxand-corp.com>, Warren Yahoo <xxxxxxx@yahoo.com>\r\n";
$headers .= "From: ".$info['Email']."";

/ and now mail it /
mail("$email_list", "Bla Bla Bla", $message, $headers);

It works it the $email_list has only one address. If I add additional addresses It returns "Warning: Server Error in xxxx""; and does not send the mail.

I am running php 4.2.2 on Apache in Windows.

Any idea's?

    I don't see a comma, I see a semicolon....

      Same error with a comma.

        I also don't see a message.
        Kill the additional headers and just try this

        $email_list = "Warren <xxxxxx@xxxxxand-corp.com>, Warren Yahoo <xxxxxxx@yahoo.com>";
        $subject    = "Bla Bla Bla";
        $message    = "Testing multiple addresses";
        $headers    = "MIME-Version: 1.0\r\n";
        $headers   .= "Content-type: text/html; charset=iso-8859-1\r\n";
        
        mail($email_list,$subject,$message,$headers); 

          Warning: Server Error in c:\xxxxxx

          same error

          Do I need to upgrade to php 4.4.3 from 4.2.2 in order to use multiple addresses in the to?

            Write a Reply...