PHP: HTML Mail Form Coding / PHP Mail Send Scripting Tutorial
In this lesson we go over how to code a basic mail form in HTML. We then show how to create the corresponding php file used to send mail to any email address you choose. Be sure to leave us a comment letting us know what you think, tutorial ideas etc…
The php file is not going to work, you need to change all the $message, $headers, etc..
You need to write this for example :
$subject = $_POST[‘subject’];
It’s for each variable and information that you want to send in your mail.
source