The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Of course it's not working. He is not sending authentication, which on a windows server is impossible with mail(). There are only two choices: 1) configure the mailserver not to require authentication from localhost or 2) use fsockopen and send authentication. I have written a function that does number 2 and there is also php mailer or the pear module.

So if you want to be able to use mail() only option is configure the mailserver to allow it.

Change your mail() command to win_mail and then put the function I am posting at the bottom of your script or in an external file and require() it. Don't forget to fill in your username and pasword in the first line of the function. Tell me how you get on.

I must have a semi-colon or ' missing somewhere as all I get is a blank page...

Of course it doesn't print anything... the doesn't contain any print or echo's. It sends ok for me using the code you posted. Try the following to see some output. If it returns mail not sent add ?debug at the end of the URL to see where it crashes.