You are here: mail problem « All PHP « IT news, forums, messages
mail problem

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&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@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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация