Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/02/2009, 08:47
Guiye1988
 
Fecha de Ingreso: diciembre-2008
Mensajes: 9
Antigüedad: 16 años, 3 meses
Puntos: 0
Respuesta: Configuracion SENDMAIL

Pongo mi codigo. Soy totalmente principiante en esto.

<?php
if (!empty($_POST))
{
$to = "[email protected]";
$from = $_POST['mail'];
$subject = "Asunto:".$_POST['asunto'];
$body =" Paciente: ".$_POST['nombre']."-".$_POST['apellidos']."<br> Mail del contacto:".$_POST['mail']."<br> Ciudad:".$_POST['ciudad']."<br>El telefono es:".$_POST['telefono']."<br>La consulta es:".$_POST['texto'];
if (mail($to, $subject, $body)) {
echo("<p>Mensaje Enviado</p>");
} else {
echo("<p>Error al enviar el mensaje</p>");
}
}
?>