Validating email php Adult computer internet chat and forum

For example, [email protected] would fail the test, but it is a valid e-mail address.

validating email php-83

This is accomplished by using the PHP mail() function. Let us first create a simple interface for the user to write the email message in HTML for our PHP email example. This works like simple email with just a few additions. For simplicity purpose, form to send input information remains the same as in above example.

In this chapter, we will explain using the mail function in PHP for simple text and HTML emails.

Here is the php function to check if email-id is valid or not using regular expressions.

We see websites having links to contact by way of Contact Us or An Inquiry form or some other way.

As stated: "Feel free to use and redistribute this code.