Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/08/2005, 14:35
Avatar de ivaanadame
ivaanadame
 
Fecha de Ingreso: agosto-2005
Ubicación: México
Mensajes: 141
Antigüedad: 18 años, 7 meses
Puntos: 0
ESTE ES EL FORMULARIO: ESTE ES UN HTML
<form method=POST action=enviar.php>
Tu nombre:<br>
<input type=text name=tunombre size=20><br>
Tu email:<br>
<input type=text name=tuemail size=20><br>
Nombre de tu amigo:<br>
<input type=text name=nombreamigo size=20><br>
Email de tu amigo:<br>
<input type=text name=emailamigo size=20><br>
<br>
<input type=submit value=Recomendar name=B1></p>
</form>

Y ESTE ES ARCHIVO DE ENVIO: ESTE ES UN PHP
<?

$asunto = "Tu Amigo $tunombre te recomienda lo que quieras";

$mensaje = "Hola ".$nombreamigo.", tu amigo ".$tunombre." te recomienda
que ingreses a DONDE QUIERAS";


mail($emailamigo, $asunto, $mensaje, "From: ".$tuemail);

ECHO "gracias por recomendarnos";
?>


espero que te sirva!
__________________
Recetas de Cocina | http://www.comidasypostres.com