Checking email address existence using php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shaam
Forum Newbie
Posts: 20
Joined: Tue Jun 23, 2009 6:36 am

Checking email address existence using php

Post by shaam »

Hi,
I want to check whether an email address taken from user is actually exist or not,e.g 'shaam@abc.com' this address is correct w.r.t syntax but i want to check whether it exist or not.
i have found code from google but it does't work for yahoo email address.
Plz help me.

Thanks
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: Checking email address existence using php

Post by Apollo »

There is no way to tell if an email address is really working for sure. At least not something that works on all (or even the majority of) email addresses.

You may connect to the appropriate SMTP server and send the usual initialisation (HELO, RCPT etc) to check if it's refused on the spot, but even if it's not it may still bounce later on, or tons of other problems.
shaam
Forum Newbie
Posts: 20
Joined: Tue Jun 23, 2009 6:36 am

Re: Checking email address existence using php

Post by shaam »

Thanks for your reply.
Yes you are right,im using the smtp method but it's not validating some of email addresses like yahoo due to their smtp settings,that's why im searching for some other method.
Thanks
Post Reply