The mail() function allows you to send emails directly from a script.
bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )
Sends an email.
Using mail() to send a simple email:
The addition of basic headers, telling the MUA the From and Reply-To addresses:
The additional_parameters parameter can be used to pass an additional parameter to the program configured to use when sending mail using the sendmail_path.
It is also possible to send HTML email with mail().