I am trying to build a form that will check if my email list is valid... so that I can dump any dead email addresses from it..
<?PHP
$pieces = explode(",", "$_POST[EMAILS]");
FOREACH ($pieces as $k => $email) {
if (!empty($email)) {
str_replace(" ", "", "$email");
$checkEmail = new SMTP_validateEmail();
$check = $checkEmail->validate(array("$email"), $email);
echo $check["$email"] . a;
echo "<p>"; echo "Checking... $email"; if ($check["$email"] == 1) echo " (valid)<br>"; else echo "(invalid)<br>"; echo "</p>";
}
}
?>
this works fine,
for the first email...
any additional emails don't seem to work..
thinking it has something to do with the way the new SMTP validate is used.. but I am sort of confused here...