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