How to send an email from PHP

I have joined Google and none of the tools on eKstreme.com are official Google tools nor are they endorsed by Google. See this.

The mail() function provides the necessary bit of code. Here is its format:

mail($To, $Subject, $Message, $ExtraHeaders);

where:

$To: The recipient's email address
$Subject: The subject of the email
$Message: The email's body text - what you want to send!
$ExtraHeaders: Any extra email headers you want to add to the outgoing email.