Page 1 of 1

Does the user exist? How?

Posted: Wed Mar 25, 2009 4:38 am
by gzox
I have huge email list, but most emails do not exist anymore.

I wish to check which emails exist and which don't.

I do not want to send messages and receive bounced returned emails messages.
I only want to ask mail server on some way if user exist.
If exists I receive that information and brake down send process (I do not want to send email if user exist).

Can you help me please?

Re: Does the user exist? How?

Posted: Wed Mar 25, 2009 5:27 pm
by Chris Corbyn
You'll have a hard time doing this reliably. Historically servers accepts a "VRFY" command that would tell you if the user exists... but spammer loved this, so it no longer works!

Your best best is to try catching the bounces by opening the mailbox they go to ($message->setReturnPath()) and parsing the emails...

http://php.net/imap