Check mail account availablity

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NurAzije

    Check mail account availablity

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

  • Janwillem Borleffs

    #2
    Re: Check mail account availablity

    NurAzije wrote:[color=blue]
    > 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.
    >[/color]

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

    $ telnet mailserver.some thing 25
    220 mailserver.some thing ESMTP Postfix
    $ helo localhost
    250 mailserver.some thing
    $ 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



    Comment

    • R. Rajesh Jeba Anbiah

      #3
      Re: Check mail account availablity

      NurAzije wrote:[color=blue]
      > 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.[/color]

      FWIW, <news:111247504 1.912968.33200@ l41g2000cwc.goo glegroups.com> (
      http://groups.google.com/group/comp....1755e1414860ed )

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

      Comment

      • NurAzije

        #4
        Re: Check mail account availablity

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

        Comment

        Working...