Page 1 of 1

troublshooting in mail function

Posted: Mon Aug 14, 2006 12:13 pm
by Him
Hi everybody,

I used MDaemon as email server for using mail function. But every time run the program either I get error as failed connect if the SMTP is 127.0.0.1.25 and server error if the SPTP is 127.0.0.1 in the php.ini. I am using IIS server and my php is 4.6.3. What might be the reason? Can u plz give any solution or any options.

Him Acharya

Posted: Mon Aug 14, 2006 2:01 pm
by Chris Corbyn
127.0.0.1.25 is not a valid address. It should be 127.0.0.1:25.

Troubleshooting.... have you tested if the email server is actually working?

Open a command line and type

Code: Select all

telnet localhost 25
If you get a greeting message type "quit" and hit enter because the server is (probably) working in that case. If you can't connect on port 25 the problem is with your mail server and not with PHP. I belive the problem will lie with the mail server myself.