[MOD: Moved from PHP forum. -pbmods]
Hi there,
Well, I really need help from someone here, and hope that someone will answer my question and solve my problem. I know it's very common question and being asked by many developers:
Basically i keep getting warning message and unable to send out email:
[PHP]Warning: mail(): Failed to connect to mailserver at "mail.xxxx.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\hosting\xxxx\xxx\thankyou.php on line 314[/PHP]
I have already done what i'm supposed to do.
a) changed the setting in php.ini file, that connect to the correct mail server.
b) Added server ip address to relay and allowed to send out email, for aunthentication etc.
Basically, my script is on Server A (not mail server), and need to connect to Server B (mail server) for sending email. After everything done, and restart Server A, it's working and able to send out email. But after end of day, it's unable to send out the mail anymore, yet get the warning message instead. I'm sure the mail server is correct. So,
1) What could be the problem? is it the php installation problem?
2) Why it's not stable, only sustain for one day (next day fail to send out email)?
PS: Current php version is 4.3.9, on Windows server 2000 with IIS support.
Pls help! thanks in advance.