Validate Email Existence
I am trying to use the "P开发者_如何学编程HP SMTP Email Validation" library
On line 163 of smtp_validateEmail.class.php
the $reply
variable is empty.
What am I doing wrong? Has anyone gotten this to work? Is there another library I should use?
Thanks
Not many mail servers are going to allow this sort of validation - it's far far far too easy for spammers to utterly nail a server with verification requests and build a list of valid emails they can flood with penis-pill-pushing-russian-brides-who-sell-PHDs spam.
If you're just trying to determine if an email address has a valid format, not that it actually exists, you can use
$email = filter_var($email, FILTER_VALIDATE_EMAIL);
I would say that you're not passing the $email
variable to the function that creates the $user
and $domain
variables.
The function is _parseEmail
and is defined on line 78
Are you getting any errors?
If you're trying to determine if an email is valid and exists, then send an email to it. If you've forced the user to enter in their email twice, there is really not much more you can do other than send them an authentication email and that's it.
精彩评论