B4A Library Library Check Email-Domain if Valid

Discussion in 'Additional libraries, classes and official updates' started by MarcoRome, Jul 9, 2015.

  1. MarcoRome

    MarcoRome Expert Licensed User

    Hi all.

    This is simple library to check if Email-Domain is valid.
    Is very simple:

    CheckEmail
    Author:
    Devil-App
    Version: 1
    • checkemail
      Methods:
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • Initialize (email As String, Module As Object, EventName As String) As String


    Code:
    'Example: Do you want check if email: info@devil-app.com is valid
    Dim verify_email As checkemail
    verify_email.Initialize(
    "info@devil-app.com",Me,"check")
    .....

    'Valore = "01" --> This domain is active and is set up to receive emails normally.
    'Valore = "11" --> This domain operates an anonymous, temporary or disposable email service (DEA). It is likely this inbox will only exist for a few minutes or hours.
    'Valore = "12" --> ROBOT. This domain runs a monetized bounce service. Emails sent to this address will not be read by a human.
    'Valore = "21" --> Invalid Domain
    'Valore = "22" --> Unregistered Domain
    'Valore = "23" --> No MX Records Found
    'Valore = "81" --> Whois Lookup Error
    'Valore = "82" --> DNS Lookup Error
    'Valore = "91" --> Rate Limit Exceeded
    'Valore = "92" --> Internal Server Error
    Sub check(valore As String)
         
    Log("Da check Valore: " & valore)
         
    Select Valore
         
    Case "01"
             
    ToastMessageShow("This domain is active and is set up to receive emails normally."True)
         
    Case "11"
              
    ToastMessageShow("This domain operates an anonymous, temporary or disposable email       service (DEA). It is likely this inbox will only exist for a few minutes or hours."True)
           ....
         
    End Select
    End Sub
    '******

    Is important that you have this library:
    httputils2
    json
    okhttp
    javaobject
    stringutils

    Installation instructions:
    You have 2 way:

    1 LIBRARY
    - Unzip the attached file ( CheckEmail1.0-Lib) and copy CheckEmail.jar and CheckEmail.xml to the libraries folder
    - Verificaemail-b4a-example.zip is simple B4A

    2 CLASS
    - Available also Class. Unzip the attachment CheckEmail-class.zip

    Thank you particolary @sonicmayne

    Screenshot 2015-07-09 21.55.25.png
     

    Attached Files:

    Last edited: Jul 9, 2015
    FabioRome, Humberto, Mashiane and 4 others like this.
  2. thader2012

    thader2012 Member Licensed User

    Oh! wonderfull! it's very nice. Thank you for your library.
     
Loading...