Código PHP:
   Notice: Undefined variable: cuerpo in /home/viajesra/public_html/modulos/envio.php on line 12
 
Notice: Undefined variable: mensaje in /home/viajesra/public_html/modulos/envio.php on line 25 
    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";
?>    
 
