ho postato solo la parte interessata

Codice PHP:
    $oggetto 'ORDINE';
    
$fromname $nomeutente
    
$fromaddress $nomeutente;
    
$destinatario '<info@miosito.com>'

    
$mailsubject $oggetto
     
    
$headers "From: ".$nomeutente." <".$fromaddress.">\n"
    
$headers.= "Return-Path: <".$fromaddress.">\n"
    
$headers.= "Content-Type: text/plain; charset=iso-8859-1"
    
    

    
$message '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ORDINE ONLINE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="http://www.miosito.com/css/style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="421" border="0" align="center" class="style2">
  <tr>
    <td width="9"></td>
    <td width="392"><div align="center">[img]http://www.miosito.com/images/logo1.jpg[/img]</div></td>
    <td width="10"></td>
  </tr>
  <tr>
    <td></td>
    <td>CLIENTE: '
.$ragionesociale.'</td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td>CODICE CLIENTE: '
.$codcliente.'</td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td>CODICE ORDINE: '
.$codordine.'</td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td>RIEPILOGO ARTICOLI </td>
    <td></td>
  </tr>
  <tr>
    <td colspan="3">'
;
    do { 
$message += '</td>
  </tr>
  <tr>
    <td></td>
    <td>'
.$quantita.'</td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td>'
.$articolo.'</td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td>'
.$descrizione.'</td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td>'
.$annotazioni.'</td>
    <td></td>
  </tr>
  <tr>
    <td colspan="3">'
;
    } while (
$row_ordina mysql_fetch_assoc($ordina)); 
    
$message += '</td></tr></table></body></html>';

     
   if(! 
mail("$destinatario""$mailsubject""$message""From: $mail\nContent-Type: text/html; charset=iso-8859-1")) {  
            
$error "Errore (mailtocliente) : Impossibile inviare l' email";
        } 
        else { 
        
$error "GRAZIE PER AVERCI CONTATTATO";
        }
    return 
$error