PHP mail function

Many people practise php on a virtual server on the desktop. Since the local hsot of the desktop is not registered to any Internet Service Provider, all the php built in function will not  work in local host.

Few days ago, I was trying to send mail from my localhost. Everytime it says undefined function. I used mail() function to send the mail. Actually there is no error in the mail code. My fault was that I was running it on my desktop, not in the server. When I moved the code to my domain, it worked successfully.

Tags:

This entry was posted on Wednesday, September 9th, 2009 at 5:21 pm and is filed under PHP.

You can follow any responses to this entry through the RSS 2.0 feed.

You can leave a response, or trackback from your own site.

Leave a Reply