Implement email address validity detection by programming

Source: Internet
Author: User
Tags domain name server

ThisVB6COMThe component provides an instant mail query function. It effectively avoids sending emails to a nonexistent account. For exampleASPCheck whether the email address entered by the user is correct, and avoid storing related error information in your user database.

Main Content

Working Principle

Let's first look at how this component works.

FirstEmailAddress (for example:Someone@somewhere.com), And then it will perform the following steps:

1,Change the user name (Someone) From domain name (Somewhere.com;

2,InDNS(Domain Name Server): whether the domain name is available;

3,IfDNSIn response, it willMXFor query (Mail ExchangerEmail Exchange Server), and tryMXEstablish a session until the session is established successfully;

4,UseSMTPProtocol, which usesVRFYCommands andMail handshake(HELO,MAILT FROM,RCPT) To verify the existence of the user name in this domain;

5,The component then returns the test results and provides four possible results:

L"Domain" does not exist. The server makes a negative response.

L"Domain" exists, but the user name cannot be queried (see comments ). The server makes a partial confirmation response.

L"Domain" exists, but the user name does not exist. The server makes a negative response.

L"Domain" and user name both exist. The server makes a full confirmation response.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.