Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/10/2004, 21:02
Avatar de capuleto
capuleto
 
Fecha de Ingreso: octubre-2003
Ubicación: Cartagena
Mensajes: 219
Antigüedad: 20 años, 6 meses
Puntos: 0
problema con funcion mail()

Me sale el siguiente error

Código PHP:
NoticeUndefined variablecuerpo in /home/viajesra/public_html/modulos/envio.php on line 12

Notice
Undefined variablemensaje in /home/viajesra/public_html/modulos/envio.php on line 25 
Este el codigo que utilizo, ok...
Código PHP:
<?php
$asunto 
"Formulario de Contacto"
$destinatario "[email protected], [email][email protected][/email]"
$cuerpo.= "<b>Contacto</b>.<br>"
$cuerpo.= "<b>Estos son los datos del contacto:</b><br>"
$cuerpo.= "<b>Nombre:</b> $nombre<br>"
$cuerpo.= "<b>Teléfono:</b> $tel<br>"
$cuerpo.= "<b>E-Mail:</b> $mail<br><br>"
$cuerpo.= "<b>Consulta:</b> $consulta<br>"
//dirección del remitente 
$headers "MIME-Version: 1.0\r\n"
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"
$headers .= "From: $mail\r\n"
mail($destinatario$asunto$cuerpo$headers); 
$mensaje.="El Formulario de contacto fue enviado correctamente.<br><br>\n";
$mensaje.="En breve nos pondremos en contacto con Usted.<br><br> \n";
$mensaje.="Muchas Gracias.\n";
$entorno=<<<ENTORNO
<td vAlign=top align=middle width="80%">
  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
    <TR>
      <TD vAlign=top align=middle width="98%">
        <table width="550" border="0" cellspacing="0" cellpadding="0">
          <TR>
            <TD align=left><IMG SRC="images/tcontactenos.gif" WIDTH="198" HEIGHT="31" BORDER="0"></TD>
          </TR>
        </table>    
        <TABLE cellSpacing=0 cellPadding=0 width="100%" background=images/linea_punteada.gif border=0>               
        <TBODY>
          <TR>
            <TD><IMG height=1 src="" width=2></TD>
          </TR>
        </TBODY>
        </TABLE>
        <TABLE cellSpacing=0 cellPadding=7 width="95%" border=0>
        <TBODY>
          <TR>
            <TD class=contenido><p class="enlace_home">$mensaje</TD>
            <TD vAlign=top align=right width="2%"><IMG height=147 alt="Viajes Rabbit Ltda" src="images/imgemail.jpg" width=200> 
            </TD>
          </TR>
        </TBODY>
        </TABLE>
      </TD>
    </tr>
  </table>
</td> 
ENTORNO;
echo 
$entorno."\n";
?>
Se nota claramente que la variable cuerpo y mensaje estan definidas, asi que me gustaria saber porque??
__________________
...Definitivamente Soy Nadie entre los Sabios....*-*Capuleto*-*