[AFAIK] you need a web-server environment (with mail sending capabilities) in order to use the mail function.
although there may be a way to use outlook express to send mail from a php script, it will not work with the mail() function but you'll have to code something complicated for that (COM object, windows-only).