When you invoke the mail() function, it tries to connect to the smtp server, as specified in the php.ini
I don't know where you are trying to connect to, but not all mail servers allow this. If you are trying to connect to localhost, then you need a local smtp server, which I doubt is installed.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875