Here's a quick snippet of the mail function. Just replace "PUT FROM EMAIL HERE" with your own email and add values to the empty "".
You might have to get the PECL extension, or whichever it is, if your SMTP server requires authentication. The basic mail function does not support auth.