Localhost working fine with executing php code except mail function.
Posted
by
Radheshyam Nayak
on Server Fault
See other posts from Server Fault
or by Radheshyam Nayak
Published on 2010-12-30T04:12:47Z
Indexed on
2010/12/30
14:56 UTC
Read the original article
Hit count: 379
localhost
i tried executing the mail() and got the following 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() "
but SMTP and smtp_port are both set in php.ini more ever other codes are working fine with localhost.
disabled or/and added exception to firewell no result.... tried telnet localhost 25 error:could not connect to localhost port 25:connection failed.....
Thunderbird my mail client says:could not connect to server localhost the connection was refused....
php.ini
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
smtp_port = 25
running mercury mail server in xampp... previously working fine but now not working..
© Server Fault or respective owner