Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/03/2007, 19:33
franco190453
 
Fecha de Ingreso: abril-2006
Mensajes: 1.128
Antigüedad: 18 años, 1 mes
Puntos: 33
Re: Ayuda con EMAIL en PHP

Aqui te incluyo el codigo .html y el codigo php.
1.- El codigo .html
2.- El Codigo .php
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Mensajes de correo de www.franco7777.org</title>
</head>

<body bgcolor="#0066FF" leftmargin="24" topmargin="24">

<form method="POST" name="mail" action="correo.php">
<fieldset><legend><strong><u><p style="color:#ffffff; font-size:16pt"> NACIONALES :</p></strong></u></legend>
<p><strong><font face="Verdana" style="font-size: 10pt">Destino : </font></strong></p>
<p><input type="text" name="destino" size="20" maxlength=7></p>
<p><strong><font face="Verdana"><span style="font-size: 10pt">Envia :</span></font></strong></p>
<p><input type="text" name="origen" size="20" maxlength=7></p>
</fieldset>
<fieldset><legend><strong><u><p style="color:#ffffff; font-size:16pt"> SU MENSAJE :</p></strong></u></legend>
<p><strong><font face="Verdana" style="font-size: 12pt">Mensaje a Enviar :</font></strong></p>
<p><textarea rows="4" name="mensaje" cols="20"></textarea></p>
<p><input type="submit" value="Enviar Mensaje" name="Submit"></p>
</fieldset>
</form>
<p align="center"><font size="3"><a href="http://www.franco7777.org">Hecho Por :
Francisco J. Gonzalez Holman de Los Sitios Web www.franco7777.org</a></font><br>
<font size="3">Derechos Reservados</font><font size="3" face="Arial">© 2007</font></p>
</php>
<?php
$origen = $_POST['origen'];
$mensaje = $_POST['mensaje'];
$destino = $_POST['destino'];
$email = "[email protected]";
$correo = "[email protected]";
// Type Your email address here
$personal = "Mensaje Enviado a: > $destino Envia> $origen!!! Mensaje Enviado:> $mensaje";
//Your thanks Note
mail($email, $origen, $mensaje ,"From: $correo \nReply-To: $destino ");
mail($correo, $email, $personal,"From: $email \nReply-To: $correo");
echo "SU MENSAJE HA SIDO ENVIADO EXITOSAMENTE!!!.";
?>

Saludos
Y espero te ayude.
Franco