mail problem
- From: egb <crap@xxxxxxxxxxx>
- Date: Mon, 27 Mar 2006 20:53:55 -0300
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í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/
.
- Follow-Ups:
- Re: mail problem
- From: kapten
- Re: mail problem
- Prev by Date: Re: beginning PHP problem
- Next by Date: beginning PHP problem
- Previous by thread: Re: ANN: Developers, Free MySQL hosting
- Next by thread: Re: mail problem
- Index(es):
Relevant Pages
|