Hello,
Long time no post! I've been concentrating on my other projects lately so I have neglected to post on here 🙁
However I come back with a nice little email validator 🙂
Email addresses are changing all the time, and some people use shifty techniques to get around email validators. This means that a website owner has to update the regular expression code on all of their websites. However if the checking was done remotely, then there'd be no need to change it on all. You'd just have to change it at one place.
This is easy to implement into any website and I will provide it free for all 🙂
<?php
$_emailtocheck = "some@domain.com";
$_emailvalidationresult = file_get_contents("http://www.papaface.com/emailchecker/checker.php?email=".$_emailtocheck); // 0 = invalid 1 = valid
if (trim($_emailvalidationresult) == "1")
echo "Valid.";
else
echo "Invalid email address.";
?>
The trim($_emailvalidationresult) will equal either 1 or 0. Zero if the address is invalid, and 1 if the address is correct and can receive emails.
Let me know what you think 🙂
Papaface, will you join our forum. Please also update your blog!
hehe, I’ll try to update it more often. What is your forum?