[code=php]
/* recipients */
$to = “[email protected]” . “, ” ; // note the comma
$to .= “[email protected]”;
/* subject */
$subject = $Ref;
/* message */
$message = ”
<body>
<html>
<table width=’100%’ border=’1′ cellpadding=’0′ cellspacing=’0′ bordercolor=’#CCCCCC’>
<tr>
<td><table width=’100%’ border=’0′ align=’center’ cellpadding=’0′ cellspacing=’0′ bgcolor=’#FFFFFF’>
<tr>
<td colspan=’2′><div align=’right’><font size=’1′ face=’Verdana, Arial, Helvetica, sans-serif’><strong>Número
de referencia:</strong> “.$codigo.”<img src=’http://www.whatever.com/images/1nada.gif’ width=’10’ height=’9′></font></div></td>
</tr>
</table>
</body>
</html>//The html code I have is longer, but I do not think error comes from there…
“;
}//This bracket is from a bucle I have opened above!
/* To send HTML mail, you can set the Content-type header. */
$headers = “MIME-Version: 1.0rn”;
$headers .= “Content-type: text/html; charset=iso-8859-1rn”;
/* additional headers */
$headers .= “To: Belén <[email protected]>, Ignacio <[email protected]>rn”;
$headers .= “From: Customer <$email>rn”;
/* and now mail it */
mail($to, $subject, $message, $headers);