Simple php mail script is not only educational, but also applicable for practical Web development. It allows you to place a simple form for sending emails on any HTML page. The script shows you how to gather user input, perform form validation with PHP, and send an email.
First, make the form page mail.html (you may call it whatever you like)…
Mail sender
The form contains the necessary text fields Email, Subject, Message, and the Send button. The line