Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/04/2012, 11:47
Avatar de Simon_Echecopar
Simon_Echecopar
 
Fecha de Ingreso: marzo-2012
Mensajes: 96
Antigüedad: 12 años, 1 mes
Puntos: 0
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port

Tengo el siguiente codigo,
Código PHP:
<?PHP
include_once "conn.php";
$contacto $_REQUEST['email'];
$nombre   $_REQUEST['nombre'];
$tema     $_REQUEST['tema'];
$texto    $_REQUEST['Texto'];

echo 
$contacto." ".$nombre." ".$tema." ".$texto;

$query     "INSERT INTO coment VALUES (NULL,".$nombre.", ".$contacto.", ".$tema.", ".$texto.")";
$resQuery  mysql_query($query);
$query1    "SELECT * FROM coment";
$resQuery1 mysql_query($query1);
WHILE(
$rowQuery1 mysql_fetch_row($resQuery1))
{
 FOR(
$i=0;$i<=10;$i++)
 {
  echo 
$rowQuery1[$i];
 }
}
$subject   "Estimado ".$nombre.":\n Hemos recibido su comentario, en breve nos ponemos en contacto con usted.";
mail($contacto,$tema,$subject,"FROM: [email protected]");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> New Document </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
 </head>

 <body>
  <form method="POST" id="contacto" target="_self">
    <table>
     <tr>
      <td>Nombre
      </td>
      <td><input id="nombre" name="nombre" type="text">
      </td>
     </tr>
     <tr>
      <td>Correo Electronico
      </td>
      <td><input id="email" name="email" type="text">
      </td>
     </tr>
     <tr>
      <td>Tema
      </td>
      <td><input id="tema" name="tema" type="text">
      </td>
     </tr>
     <tr>
      <td>Comentarios
      </td>
      <td><Textarea id="Texto" name="Texto" type="text"></textarea>
      </td>
     </tr>
     <tr>
      <td colspan=2 align="right"><input id="Submit" name="Submit" type="Submit" Value="Enviar">
      </td>
     </tr>
  </form>
 </body>
</html>
me muestra el error que tengo en el asunto, lo solucione activando el mercury mail server.
Me sale el siguiente error,

Warning: mail() [function.mail]: SMTP server response: 503 No valid recipients specified. in C:\xampp\htdocs\AMS\Contacto.php on line 22

Que hago?