Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/09/2005, 05:08
Avatar de Bytevamp
Bytevamp
 
Fecha de Ingreso: junio-2005
Ubicación: /var/www/
Mensajes: 789
Antigüedad: 18 años, 10 meses
Puntos: 7
Revisa la funcion Mail()http://es2.php.net/manual/es/ref.mail.php
No obstante te doy el codigo.

correo.html:

Código HTML:
<html>
<head>
    <title></title>
</head>
<body>

	<form name="formMails" method="GET" action="mail.php">
		Mail<input type="text" name="txtMail" size="80"><br>
        Tema<input type="text" name="txtTema" size="80"><br>
        Mensaje<textarea name="txtMensaje" cols="80" rows="6"></textarea>
  		<input name="boton" type="submit" class="botones" value="enviar">
	</form>
</body>
</html> 
mail.php:

Código PHP:
<html>
<head>
    <title>Notificaciones</title>
</head>
<body>
<? 
    $destinatario
="Tu direccion de Mail";
    
$txtMail=$_GET['txtMail'];
    
$headers $txtMail;
    
$tema=$_GET['txtTema'];
    
$Mensaje=$_GET['txtMensaje'];
    
mail($destinatario,$tema,$Mensaje,$headers); 

?> 
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>El mensaje ha sido enviado correctamente!
</p>
</body>
</html>
Aunque que conste que tu servidor debe admitir la instruccion mail().

Suerte.