URGENT pls help

esham

New member
I have a site with OS commerce installed...
The problem is that the PHP mail function is not working...
it was working a few days back...

Please help me out of this...

Thanks in advance

esham
 
Hello esham,

The problem most likely doesn't lie with your script itself, but the server it is installed on. Web Servers are often dedicated to just that (web serving) and therefore access to a SMTP is complicated or restricted. PHP.ini (the configuration file for PHP) sets the default port (that is 'fingered' to find SMTP) as 30 if I remember correctly and the likelyhood is that this has been blocked.

Speak to your host about allowing access to the port/server or otherwise they should have an alternate method whereby you can access your mail server. Many hosts are offering it through a service called 'CGI form-mail', which is usually pretty easy to intergrate into your scripts.

Good luck!
~Equinox
 
Top