5kits zhao

Send email using the PHP mail() function

<?php

// Your email address

$email "you@example.com";

// The subject

$subject "Enter your subject here";

// The message

$message "Enter your message here";

mail($email$subject$message"From: $email");

echo "The email has been sent.";

?>

reference 

http://totallyphp.co.uk/code/send_email_using_the_php_mail_function.htm

Leave a Reply