mail() function mails information to a given recipient.
Its syntax is: boolean mail(string recipient, string subject, string message [, string addl_headers])
<?
$email = "y@yourserver.com";
$subject = "This is the subject";
$message = "This is the message";
$headers = "From: somebody@somesite.com ";
mail($email, $subject, $message, $headers);
?>
Related examples in the same category