This is the code that I use:
mail($to, $subject, $message, $headers);
where $to is the address that I'm sending the email to, $subject is the subject line, $message is the actual text opf the message, and $headers tells php to alter the from address of that particular email to mine, not the default.
more info here: ...