Check mail account availablity

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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.
Thank you..

Re: Check mail account availablity

NurAzije wrote:
Quoted text here. Click to load it

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.


Re: Check mail account availablity

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Re: Check mail account availablity

Thank you very much ..
I found a validation class ..

Site Timeline