Home > Products >DEXTEmailValidator > Live Demo  
 
 
 
Enter email address to test
      
    - Syntax check only checks the Syntax of email address, mailbox check checks whether mailbox
      actually exists in entered mail server. At this time, actual mail transmission is not performed.
 

[ C# ]
using DEVPIA.DEXT;
...
EmailValidator rv = new EmailValidator();
rv.SenderDomain = "mydomain.com";
rv.SenderEmail = "test_user@mydomain.com";
rv.DnsCacheType = DNS_CACHE_TYPE.QUEUE;

RESULT_TYPE rType = rv.ValidateMailbox(this.txtEmail.Text.Trim());

switch (rType)
{
           case RESULT_TYPE.VALID : // Valid email address.
                       break;
           case RESULT_TYPE.INVALID_SYNTAX : // Email address does not match with Regular Expressions.
                       break;
           case RESULT_TYPE.INVALID_MAILBOX : // Mailbox does not exist.
                       break;
           case RESULT_TYPE.FAIL : // Decision holding.
                       break;
}

rv.Dispose();
...


[ ASP ]
Dim rv
Dim rType
SET rv = Server.CreateObject("DEXTEmailValidator.EmailValidator")
rv.SenderDomain = "mydomain.com"
rv.SenderEmail = "test_user@mydomain.com"
rv.DnsCacheType = 2

rType = rv.ValidateMailbox("userid@test.com")

SELECT rType

     case 0 : // Valid email address.
                  Response.Write "Valid mail address : VALID"
     case 1 : // Email address does not match with Regular Expressions.
                  Response.Write "Invalid mail address : INVALID_SYNTAX"
     case 2 : // Mailbox does not exist.
                  Response.Write "Invalid mail address : INVALID_MAILBOX"
     case 3 : // Decision holding.
                  Response.Write "Decision holding : FAIL">
END SELECT

SET rv = nothing
...
 
 
Move to devpia  
  Copyright ¨Ï 2007 DEVPIA, Inc. All rights reserved.