Je ne comprends pas tout la
J'ai récupéré le script et le formulaire pour tester l'adresse e-mail donnés sur ce site :
http://www.tienhuis.nl/php-email-address-v...th-verify-probeet je les ai mis sur mon serveur.
Quand je teste l'adresse
cgxdgdf@hotmail.com (qui normalement ne devrait pas exister) depuis le site du script ça me renvoit :
Citation
Unverified address: mx1.hotmail.com said: 550 Requested action not taken: mailbox unavailable
Réponse à priori normale.
Par contre quand je test la même adresse depuis mon site ça revoit :
Citation
This address appears to be correct!
Voici le code du formulaire :
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>E-mail address verification example</title>
<style type="text/css">
span.bad {color:red; font-weight:bold;}
span.good {color:green; font-weight:bold;}
</style>
</head>
<body>
<h1>E-mail address verification demo</h1>
<p>
<form name="form1" method="post" action="<?=$_SERVER['SCRIPTNAME']?>">
<input name="email" type="text" id="email" value="<?=$_REQUEST['email']?>" size="40" />
<input type="submit" name="Submit" value="Check me!" />
</form>
</p>
<p>
<?php
# Get this function at http://www.tienhuis.nl/files/email_verify_source.php
# and save as VerifyEmailAddress.php
require_once "VerifyEmailAddress.php";
if($_REQUEST['email']) {
# Do the actual check and notify if any errors come back.
# READ THE COMMENTS IN THE FUNCTION, THIS IS SITE SPECIFIC!
# WILL NOT WORK WITHOUT SITE LOCAL MODIFICATION.
# You have been warned 
$error = validateEmail($_REQUEST['email'], true, true, 'postmaster@tienhuis.nl', 'outkast.tienhuis.nl', true);
if ($error) {
echo "<span class='bad'>$error</span>";
} else {
echo "<span class='good'>This address appears to be correct!</span>";
}
}
?>
</p>
</body>
</html>
J'ai fais un copier/coller du code et pourtant ça ne me donne pas le même résultat

!
Merci de m'aider à comprendre.