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!
Do I need any special settings for php in order to use this function ?
I got this message returned (I don't have mail server installed, but just to ask, if I jumped over any important step):
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in file-path... on line 147.
What does this error say - mistake in code, or just no mail server present ?
You need a mail server. Linux boxes should have sendmail, but if you're on a windows box, you don't have such a luxury. You need to install a mail server and configure it to use port 25, or configure php to use another port.