是否可以检查是否存在类似于本网站的电子邮件?
http://verify-email.org/
<?php
if($_POST['email'] != ''){
// The email to validate
$email = $_POST['email'];
// An optional sender
function domain_exists($email, $record = 'MX'){
list($user, $domain) = explode('@', $email);
return checkdnsrr($domain, $record);
}
if(domain_exists($email)) {
echo('This MX records exists; I will accept this email as valid.');
}
else {
echo('No MX record exists; Invalid email.');
}
}
?>
<form method="POST">
<input type="text" name="email">
<input type="submit" value="submit">
</form>
这就是我现在所拥有的。它会检查域是否存在,但无法检查该域上是否存在用户的电子邮件。是否可以使用PHP来做到这一点?
POPMUISE