Reputation: 54949
I have a list of email ids. some bounce. i wanna know how i can weed out the once which dont exists.
any software which helps us do it ?
Upvotes: 0
Views: 2226
Reputation: 317
Here is a boolean function that you can put in your JavaScript to check weather the emails are valid (this regex has a ~95% success rate):
function isValidEmailAddress(emailAddress)
{
var emailPattern = new RegExp(/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i);
return emailPattern.test(emailAddress);
}
Note that this does not check whether they exist or not, but will help in weeding out false emails.
Upvotes: 1
Reputation: 99794
Send an email to each of them. If you don't get a bounce back then the email is probably valid.
Upvotes: 2
Reputation: 7009
Detect the bounces and remove the addresses that bounce from your list. There is no other way, and the overhead is neglectable.
Upvotes: 2
Reputation: 55039
No, pretty much all email servers will refuse to tell you if an address is valid or not these days since otherwise it would be abused by spammers.
Upvotes: 2
Reputation: 11315
I've used Max Prog for this problem before.
http://www.maxprog.com/site/misc/products_us.php
Upvotes: 1