Localhost working fine with executing php code except mail function.
- by Radheshyam Nayak
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....