|
Posted by egb on 09/28/35 11:43
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@thecamino.com.ar' . ', ';
$para .= 'egb@thecamino.com.ar';
$asunto = 'Prueba email con html';
$mensaje = 'html>head> title>test/title>/head>body> p>podrí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@1463.com.ar>' . "\r\n";
$cabeceras .= 'From: nadie <egb@example.com>' . "\r\n";
$cabeceras .= 'Cc: egb@thecamino.com.ar' . "\r\n";
$cabeceras .= 'Bcc: webmaster@thecamino.com.ar' . "\r\n";
mail($para, $asunto, $mensaje, $cabaceras);
?>
thanks,
Eduardo
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
[Back to original message]
|