Sends an email.
This function sends an email to one or more recipients. If more than one email addresses are specified, they should be separated with commas. On Windows, mail() connects to an SMTP server specified in the php.ini file. The sendmail program is used on Unix. The optional parameters are passed to sendmail. mail() returns TRUE if the email was accepted, and FALSE if it was not.
<pre>
<?php
$msg = "Call me.\n\nRegards,\nSomeone Else.";
mail("someone@somedomain.com", "Hi", $msg);
print $msg;
?>
</pre> Call me.
Regards,
Someone Else. An email is sent.