PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
mail() should be in php. I would do as Mac suggested and reinstall php. OR maybe it is because that content you have in mail()... I use this format for mailing:
That is a snipplet of my script i use so people can send me feedback, i see in yours there isn't a proper mailing address nor proper from address, could that be it??
thanks guys,
I didn't reinstall php, but I tried my file at an account at lycos
it worked
maybe I should have tried that before posting, sorry
anyway, thanks for the replies!
I know why this happenned. I am running Windows XP with PHP 4.1.1.
The problem is Windows doesn't have a mail server, unliess you install it. Therefore, there is no way for a mail function to work. Once you upload it to a linux server (lycose, whatever), it starts working.
You should probably reinstally PHP locally even though you have a remote host because your version could have other bugs aside from a missing mail() function.
The mail() function should be built into PHP as standard - you have to tell it where to send mail in the php.ini but the actual function should just be available by default.