Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/05/2011, 14:40
betodaniel61
Usuario no validado
 
Fecha de Ingreso: abril-2009
Ubicación: Buenos Aires
Mensajes: 413
Antigüedad: 15 años
Puntos: 3
Envio de Mails con PHP

Buenas Tardes, tengo un problema para enviar mails, me esta dando el siguiente error:
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:\xampp\htdocs\aa2.php on line 16
mail() Failure!

Por las dudas les paso el codigo del PHP:
<?
$para = '"To Norbi" <[email protected]>';
$titulo = 'PHP mail Prueba';
$message = 'This message was sent via PHP!' . PHP_EOL .
'It should work ... and it does.' . PHP_EOL . PHP_EOL .
'From Display Name' . PHP_EOL;
$headers = 'From: "Norbi" <[email protected]>' . PHP_EOL .
'Cc: "Norbi" <[email protected]>' . PHP_EOL .
'X-Mailer: PHP-' . phpversion() . PHP_EOL;
if (mail($para, $titulo, $message, $headers)) {
echo 'mail() Success!' . "<br />\n";
}
else {
echo 'mail() Failure!' . "<br />\n";
}
//mail("[email protected]","[email protected]. ar","asuntillo","Este es el cuerpo del mensaje") ;
?>

y el PHP.INI funcion mail:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = [email protected]
sendmail_from = [email protected]

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

No se que es lo que estoy haciendo mal, vi que otros lo resolvieron pero ami no se que me esta pasando.
Muy agradecido si alguien puede ayudarme.