SendMail Problem

From: Date: Sun, 20 Jan 2002 15:51:16 +0000
Subject: SendMail Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81271@lists.php.net to get a copy of this message
Hi to the list, i´m new... well.. i do a Flash SendMail with variables and HTML format..... it works.. but i insert variables in the HTML Message code.. and it don´t works... i don´t know why the code is.. <?php $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $mensaje1 = ' <html> <head> <title>Birthday Reminders for August</title> </head> <body> <p align="left"><font face="Arial, Helvetica, sans-serif" size="2"><b><i>Sugerencias y Comentarios mandado desde la p&aacute;gina de Tel&eacute;n</i></b></font></p> <table width="60%" border="1" cellspacing="0" cellpadding="0" bordercolor="#003333"> <tr> <td width="30%"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Nombre:</font></td> <td width="70%">name</td> </tr> <tr> <td width="30%"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Asunto:</font></td> <td width="70%"><?php echo $subject; ?></td> </tr> <tr> <td width="30%"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">e-mail</font>:</td> <td width="70%"><?php echo $from; ?></td> </tr> <tr> <td width="30%"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Comentario/Sugerencia</font></td> <td width="70%"><?php echo $message; ?></td> </tr> </table> </body> </html> '; ?> <?php mail("boketero@fibertel.com.ar", "Sugerencias y Consultas", "$mensaje1", $headers, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion()); ?> The variables don´t work.. Thx if u can answer P.D.: in normal format mail, the variables work..

« previous php.general (#81271) next »