troublshooting in mail function

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Him
Forum Newbie
Posts: 2
Joined: Wed Sep 14, 2005 1:27 am

troublshooting in mail function

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
Post Reply