Come mai quando invio una mail dal mio server di prova al mio client "windows mail", ricevo il testo, compreso il codice html?
Windows mail è configurato per ricevere html.
Vi ringrazio.


<?php
$to_address = $_POST['to_address'];
$from_address = $_POST['from_address'];
$subject = $_POST['subject'];
$message = $_POST['message'];

$headers = array();
$headers[] = 'MIME-Version: 1.0';
$headers[] = 'Content_type: text/html; charset=iso-8859-1';
$headers[] = 'Content-Transfer-Encoding: 7bit';
$headers[] = 'From: ' . $from_address;
?>
<html>
<head>
<title>Mail Sent!</title>
</head>
<body>
<?php
$success = mail($to_address, $subject, $message, join("\r\n", $headers));
if ($success) {
echo '<h1>Congratulation!</h1>';
echo '

The following message has been sent:

';
echo 'To: ' . $to_address . '
';
echo 'From: ' . $from_address . '
';
echo 'Subject:' . $subject . '
';
echo 'Message:</p>';
echo nl2br($message);
} else {
echo '

There was an error sending your message.</p>';
}
?>
</body>
</html>