[b]Validation technics[/b] From this point on I will focus only on the server side validation of an email address.
In PHP you receive the form fields values in the $_POST or in the $_GET arrays.
The con is that the visitor can disable Java Script in the browser and in this case he/she can submit invalid data.
Thatâ€™s the point where the server side validation becomes important.
If mail() does not work for you for this or another reason, try the PEAR Mail package, which is much more comprehensive while maintaining, to a large degree, the simplicity and ease of mail() for sending mail from PHP.