By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,370 Members | 1,590 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,370 IT Pros & Developers. It's quick & easy.

Check mail account availablity

P: n/a
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 ma**@mailserver.somthing exists or not without sending it
a mail.
Thank you..

Oct 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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 ma**@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: ma**@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

Oct 23 '05 #2

P: n/a
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 ma**@mailserver.somthing exists or not without sending it
a mail.


FWIW, <news:11*********************@l41g2000cwc.googlegr oups.com> (
http://groups.google.com/group/comp....1755e1414860ed )

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Oct 23 '05 #3

P: n/a
Thank you very much ..
I found a validation class http://www.phpclasses.org ..

Oct 24 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.