This script will not only check the email by regex but it will also use mx records to check if the domain exists. It also checks against one of the most popular recieve only free email sites.
This tutorial will teach you the basics of form processing and email sending using php.
It first teaches you how to produce a html form and process it on the same page using php. Then it moves on how to send emails using php
Spam is a major problem. As spam filters become more effective the spam changes to evade prompting the spam filters to again step up their aggressiveness. In this escalating battle it is all too easy for legitimate email to be filtered out in error. If you have ever had to deal with a complaint from a customer who never received their activation email, only to find it in their spam folder then you are familiar with the problem. No single approach is going to ensure that all your mail gets through but one quick and easy thing you should be doing is checking the black lists and make sure you are not on them.
In this tutorial I go through creating a script which will automatically and periodically check the black lists for you. Once set up you can just leave it and rest a little more secure.
If you use this code, you will be able to validate a submitted e-mail address. It checks for an @ character, and actually checks the DNS of the e-mail address domain to make sure it has a mail server.
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
In this tutorial you will learn how to send email to one person, multiple people, send and redirct to a page, send if someone visits your error 404 or other pages, add an attachment to an email, and even check to see if the email address entered is in the correct email format (name@domain.com).
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
Creating your own user registration system allows you to obtain interesting information about the visitors to your site. shows you how to send email activations to users email address's.