You are here: Re: Check mail account availablity « PHP Programming Language « IT news, forums, messages
Re: Check mail account availablity

Posted by Janwillem Borleffs on 10/23/05 16:19

NurAzije wrote:
> Hi,
> I have a huge mailling list and want to check which mails are real and
> which does not exists to reduce the size, is there a function which
> will check if mail@mailserver.somthing exists or not without sending
> it a mail.
>

Some smtp servers implement the rcpt command for this. You connect to the
users' smpt server and do something as follows:

$ telnet mailserver.something 25
220 mailserver.something ESMTP Postfix
$ helo localhost
250 mailserver.something
$ mail from: you@yourdomain
250 Ok
$ rcpt to: mail@mailserver.something
250 Ok

The last response `250 OK' would indicate that the recepient is known......
in a perfect world! However, in the real world, most mail host are
configured to return this response at all times and bounce invalid email
addresses afterwards.

Another way would be to check the output of the checkdnsrr() function, but
this will only confirm the domain, not that the user is able to receive
email on this domain.

If you really want to have a reliable way of validating email addresses,
nothing beats user intervention. For this you will have to setup a system
which sends a confirmation email to the recepients, which, after they have
clicked a link to confirm their email address, will set a flag for the
address in a database or anywhere you store the addresses.


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация