mail problem



Hi, can anyone tell me what is wrong with this code?
What I receive in the message body is the raw html code.

(note that the html code es missing all the '<', that's because I wasn't able to publish the message with the full codes)

here's the code:

<?php
$para = 'webmaster@xxxxxxxxxxxxxxxx' . ', ';
$para .= 'egb@xxxxxxxxxxxxxxxx';
$asunto = 'Prueba email con html';
$mensaje = 'html>head> title>test/title>/head>body> p>podr&iacute;s funcionar de una vez?/p>/body>/html>';
$cabeceras = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$cabeceras .= 'To: nadie <egb@xxxxxxxxxxx>' . "\r\n";
$cabeceras .= 'From: nadie <egb@xxxxxxxxxxx>' . "\r\n";
$cabeceras .= 'Cc: egb@xxxxxxxxxxxxxxxx' . "\r\n";
$cabeceras .= 'Bcc: webmaster@xxxxxxxxxxxxxxxx' . "\r\n";
mail($para, $asunto, $mensaje, $cabaceras);
?>

thanks,
Eduardo
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
.



Relevant Pages