Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/10/2010, 06:59
ikaros
 
Fecha de Ingreso: junio-2010
Mensajes: 19
Antigüedad: 13 años, 10 meses
Puntos: 0
Emails con php+xampp(mercury)

Hola a todos,

Tengo el siguiente programa:

Código PHP:
$to '[email protected]';
        
$subject 'the subject';
        
$message 'hello';
        
$headers 'From: [email protected]"\r\n" .
                
'Reply-To: [email protected]"\r\n" .
                
'X-Mailer: PHP/' phpversion();

       
$checkmail($to$subject$message$headers);  
       echo 
$check
Que me da el siguiente resultado:

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:\xampp\htdocs\pruebas\index.php on line 17
El archivo php.ini está tal que así:

Código:
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost
He probado a quitar y ponerle la primera comilla de la última línea del php.ini pero el error sigue siendo el mismo...

Tengo el XAMPP instalado, con el Apache y el Mercury activos...

Cualquier ayudita sería bien recibida :)