Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/07/2007, 08:25
naujgf
 
Fecha de Ingreso: abril-2007
Mensajes: 101
Antigüedad: 17 años
Puntos: 0
Pregunta Error al enviar un mail...

Hola buenos días,

¿Qué sucede si al ejecutar el código para enviar un e-mail produce el siguiente error?

Cita:
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\wamp\www\sigvic tesis\Paginas\Mail.php on line 18
El código es:
Cita:
$from = $_GET['correo'];
$destinatario = $_GET['dest'];
$subject = "Creación de nuevo usuario";

$mensaje = "";

$sheader = "From:".$from."\nReply-To:".$from."\n";
$sheader .= "X-Mailer:PHP/".phpversion()."\n";
$sheader .= "Mime-Version: 1.0\n";
$sheader .= "Content-Type: text/html";
if (mail($destinatario,$subject,$mensaje,$sheader))
Espero su ayuda!

Muchas gracias de antemano,

Naudi