Provato, ma ho stesso errore. Infatti analizziamo il codice dell'esempio:

Codice PHP:

<?php
// multiple recipients
$to  'aidan@example.com' ', '// note the comma
$to .= 'wez@example.com';

// subject
$subject 'Birthday Reminders for August';

// message
$message '
<html>
<head>
  <title>Birthday Reminders for August</title>
</head>
<body>
  

Here are the birthdays upcoming in August!</p>
  <table>
    <tr>
      <th>Person</th><th>Day</th><th>Month</th><th>Year</th>
    </tr>
    <tr>
      <td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
    </tr>
    <tr>
      <td>Sally</td><td>17th</td><td>August</td><td>1973</td>
    </tr>
  </table>
</body>
</html>
'
;

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

// Additional headers
/////////analizzare questa riga successiva
$headers .= 'To: U,s,e,r,1 <mary@example.com>, Kelly <kelly@example.com>' "\r\n";
/////////analizzare questa riga precedente
$headers .= 'From: Birthday Reminder <birthday@example.com>' "\r\n";
$headers .= 'Cc: [email]birthdayarchive@example.com[/email]' "\r\n";
$headers .= 'Bcc: [email]birthdaycheck@example.com[/email]' "\r\n";

// Mail it
mail($to$subject$message$headers);
?>
Qui, in questa riga,

/////////analizzare questa riga successiva
$headers .= 'To: U,s,e,r,1 <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
/////////analizzare questa riga precedente


nuovamente il compilatore non distingue bene gli "User".