Localhost working fine with executing php code except mail function.
Posted
by
Radheshyam Nayak
on Super User
See other posts from Super User
or by Radheshyam Nayak
Published on 2010-12-30T04:12:47Z
Indexed on
2010/12/30
4:56 UTC
Read the original article
Hit count: 360
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....
© Super User or respective owner