Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/11/2005, 08:44
Avatar de helthon
helthon
 
Fecha de Ingreso: junio-2005
Ubicación: Lima
Mensajes: 549
Antigüedad: 18 años, 10 meses
Puntos: 7
Gracias Seppo borre los tabs y quedo asi :


Código PHP:
        $sfrom="[email protected]"//cuenta que envia 
        //$sdestinatario=""; //cuenta destino 
        
$ssubject="Nuevo Password ";
        
//Aqui en dodne deseo colocar mi mensaje en html
        
$shtml= <<HTML
<html>
<
head>
</
head>
<
body>
<
table width=300 border=1>
<
tr>
<
td>HOLA </td>
</
tr>
<
tr>
<
td>su nuevo password es$contrasena  </td>
</
tr>
<
tr>
<
td>Gracias</td>
</
tr>
</
table>
</
body>
</
html>
        
HTML;
        
$sheader="From:".$sfrom."\nReply-To:".$sfrom."\n"
        
$sheader=$sheader."X-Mailer:PHP/".phpversion()."\n"
        
$sheader=$sheader."Mime-Version: 1.0\n"
        
$sheader=$sheader."Content-Type: text/html"
//        mail($sdestinatario,$ssubject,$shtml,$sheader);  //ejemplo de demo
        
mail($_POST['email'],$ssubject,$shtml,$sheader); // esta es la linea 67 
Ahora me sale este error :

Cita:
Parse error: parse error, unexpected T_SL in /public_html/admin/claverecuperadacluster.php on line 43
La linea 43 es $shtml= <<HTML

Gracias.
__________________
HELTHON FUENTES
FLORERIA FLORES PERU Floresperu.com.pe
Garantizamos que cada entrega de flores será de la más alta calidad y frescura