Configuring mail on a Win32 machine
I have PHP set up locally on my personal computer but I never used the mail function on my PC.
So I had no experience when a site moved from a Linux box to a PC. There was a problem with the mail function, but I had no idea what the problem was, because the error message uninformatively said 'Warning: Unknown error in script.php on line XX.'
Once you have a WAP website up and running an interesting addition to the website would be allowing your users to send email via the website. Using PHP it is an easy matter to set up a WML form very similar to an HTML mailto form, a 'tell a friend about this website' or an 'email this article to a friend' type email script.
Sending email
The mail function in PHP is of course used to send mail to a specified email address. Multiple recipients can be specified by putting a comma between each email address in the to argument of the mail function.
usage:
mail(string to, string subject, string message, string [additional_headers]);
The additional_headers argument is used to set extra headers such as 'From', 'Reply-To', 'X-Mailer' etc. Multiple extra headers are separated with a newline (n).
Example:
mail("someone@somewhere.com", "A Subject", "Some text, in the body of the email.");