Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/05/2010, 15:35
MAURICIO_KORN
 
Fecha de Ingreso: mayo-2010
Ubicación: México
Mensajes: 5
Antigüedad: 14 años
Puntos: 0
Enviar mail php

que tal amigos, tengo el siguiente código:

contacto.html

<html>
<head>
<title>Contacto Centel</title>
</head>
<body>

<form method="POST" action="enviacorreo.php">

<p><strong>Nombre:</strong><br>
<input type="text" name="nombre" size=30></p>

<p><strong>E-mail:</strong><br>
<input type="text" name="email" size=30></p>

<p><strong>Mensaje:</strong><br>
<textarea name="mensaje" cols=30 rows=8 wrap=virtual></textarea></p>

<p><input type="submit" name="aceptar" value="Enviar."></p>

</form>
</body>
</html>

---------------------------------------------------------------------------
enviarcorreo.php

<?php

$msg="E-MAIL ENVIADO DEL SITIO\n";

$msg.="Nombre del emisor: $_POST[nombre]\n";
$msg.="E-mail del emisor: $_POST[email]\n";
$msg.="Mensaje: $_POST[mensaje]\n\n";

$para="[email protected]";

$asunto="Mensaje y opiniones del sitio";

$encabezados="Desde: sitio web <> \n";
$encabezados.="Responder a: $_POST[email]\n\n";

mail($para,$asunto,$msg,$encabezados);
?>
<html>
<head>
<title>Contacto Centel</title>
</head>
<body>
<h1>Correo enviado.</h1>

<p><strong>Tu nombre:</strong><br>
<?php echo "$_POST[nombre]";?>

<p><strong>Tu e-mail:</strong><br>
<?php echo "$_POST[email]";?>

<p><strong>Tu mensaje:</strong><br>
<?php echo "$_POST[mensaje]";?>

</body>
</html>

uso argosoftmailserver para hacer un loop y poder enviar los mensajes a localhost, uso outlook para ver los correos y todo funciona perfecto, pero como puedo hacer para contestar los mails que me envian??

gracias