Jump to content


This topic is now archived and is closed to further replies.


email valadation on external website

Recommended Posts

what is wrong with this please does not seem to work properly if i take the last charecter of the email address still echo correct but that wrong please help.



$remote_url="http://where the email is";

$match_pattern = preg_quote(rtrim($email, "/"), "/");

if ($handle = @fopen($remote_url, "r")) {

while (!feof($handle)) {

$part = fread($handle, 1024);

if (preg_match("/$match_pattern./" , $part)) {

echo "email there";

} else{

echo" no email sorry";


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.