me produce este error:
Warning: fsockopen(): unable to connect to localhost:25 in c:\program files\easyphp1-7\www\class.smtp.php on line 105
Esta es una parte del archivo class.smtp.php
La linea 105 es la que esta en negrita
Código PHP:
Ver original $port = $this->SMTP_PORT;
}
#connect to the smtp server
$this->smtp_conn = fsockopen($host, # the host of the server $port, # the port to use
$errno, # error number if any
$errstr, # error message if any
[B] $tval); # give up after ? secs[/B]
# verify we connected properly
if(empty($this->smtp_conn)) { $this->error = array("error" => "Failed to connect to server", "errno" => $errno,
"errstr" => $errstr);
if($this->do_debug >= 1) {
echo "SMTP -> ERROR: " . $this->error["error"] .
": $errstr ($errno)" . $this->CRLF;
}
return false;
}
He leido que hay que modificar el archivo php.ini
Este es el fragmento por defecto que tengo:
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from =
[email protected]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
Entonces he cambiado el
[email protected] por el correo donde quiero que se envien los correos pero tampoco funciona.
Alguien sabe porque se produce el error?
Gracias.