Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/04/2006, 08:08
americo000
 
Fecha de Ingreso: julio-2005
Mensajes: 2
Antigüedad: 18 años, 8 meses
Puntos: 0
Hola, Muy buenas...
Quizás te pueda ayuda este pequeño codigo que lo estuve haciendo hace mucho... //

*********** Coloca este code en "americo.php" ********
Código PHP:
<?

if($americo){

$mensaje="


<p align='center'><b><font size='4'>Tu Mensaje en HTML</font></b></p>


<p><b>Hola: $nombre_to, tienes un mensaje</b></p>
<p><b>De: $nombre_from&nbsp; ($correo_from)</b></p>
<p>&nbsp;</p>
<p><b>$mensaje</b></p>



"
;
//Realiazado By Américo...
//para el envío en formato HTML

$headers "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: \"$asunto\" <tucorreo@electrónico>";
$asunto"¡Hola, tiene un nuevo mensaje.!";

mail($correo$asunto$mensaje$headers);



echo(
"<div align=center><font face=verdana size=1>El mensaje fue enviado a $correo</font></center>");

}


?>


<form action="americo.php" method="post">
<div align=center>
<table border="1" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111" width="50%">
  <tr>
    <td width="100%" align=center>

<font face="verdana" size="1" color="#FF0000"><b>Envia tu mensaje</b></font>
    
 <table cellSpacing="8" width="100%" >
                  <tr>
                    <td noWrap align="right" width="80" height="17">
                    <font color="#FF0000">
                    <font face=verdana size="1"><b>De</b></font><font face="Verdana" size="1"><b>:</b></font></font></td>
                    <td width="327" height="17"><font face="Verdana" size="1" color="#FF0000">
                    Nombre<input class="ia" maxLength="50" size="22" name="nombre_from" style="font-family: Verdana; font-size: 10px; border: 1px solid #FF0000"> 
                    Email<input class="ia" maxLength="50" size="22" name="correo_from" style="font-family: Verdana; font-size: 10px; border: 1px solid #FF0000"></font></td>
                  </tr>
                  <tr>
                    <td noWrap align="right" width="80" height="17">
                    <font size="1" color="#FF0000"><b>Para:</b></font></td>
                    <td width="327" height="17"><font face="Verdana" size="1" color="#FF0000">
                    Nombre<input class="ia" maxLength="50" size="22" name="nombre_to" style="font-family: Verdana; font-size: 10px; border: 1px solid #FF0000"> 
                    Email<input class="ia" maxLength="50" size="22" name="correo" style="font-family: Verdana; font-size: 10px; border: 1px solid #FF0000"></font></td>
                  </tr>
                  <tr>
                    <td noWrap align="right" width="80" height="17">
                    <font size="1" color="#FF0000"><b>ASUNTO:</b></font></td>
                    <td width="327" height="17"><font face="Verdana" size="1" color="#FF0000"><input class="ia" maxLength="50" size="62" name="asunto" style="font-family: Verdana; font-size: 10px; border: 1px solid #FF0000"> 
                      &nbsp;</font></td>
                  </tr>
                  <tr>
                    <td align="right" valign="top" width="80" height="31">
                    <p align="right"><font face="Verdana" size="1" color="#FF0000">&nbsp;<b>Mensaje:</b></font></td>
                    <td width="327" height="31"><font face="Verdana" size="1" color="#FF0000">
                    <textarea class="ia" style="color: #000000; font-family: Verdana; font-size: 10px; background-color: #FFFFFF; border: 1px solid #FF0000" name="mensaje" rows="6" cols="61"></textarea></font></td>
                  </tr>
                  <tr>
                    <td colSpan="2" width="417" height="1">
                    <table cellSpacing="0" cellPadding="0" width="426">
                      <tr>
                        <td width="50">
                       <font face="Verdana" size="1">
                        </font></td>
                        <td align="right" width="376">


<p>

<font face="Verdana" size="1">&nbsp;<input class="ib" name=americo type="submit" value="Enviar" style="font-family: Verdana; font-size: 10px; border: 1px solid #FF0000">&nbsp; </font>



</td>
                      </tr>
                    </table>
                    </td>
                  </tr>
                </table>
                </td>
              </tr>
            </table>

    </form>

Última edición por jam1138; 18/04/2006 a las 16:33