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?
Does the user exist? How?
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Does the user exist? How?
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
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