Email Validator – Ensure Your Email’s Validity

Table of Contents

Technologies used -
Description

Introducing the Email Validator, a simple yet powerful tool designed to help you verify the validity of your email addresses. In today’s digital landscape, ensuring that you use a valid email is crucial for effective communication and to prevent issues like bounced messages. This application allows you to enter an email address and receive immediate feedback on its validity, helping you maintain a clean and reliable contact list.

With just a few clicks, the Email Validator checks various aspects of the entered email address, including its format, domain existence, and deliverability. The tool integrates seamlessly with an external email validation API, providing detailed results that include the status of the email, any potential issues, and additional suggestions. Whether you’re a business owner, a marketer, or simply someone who wants to ensure their email contacts are valid, this tool is designed for you.

Highlighted Source Code
				
					btn.addEventListener("click", async(e) => {
    e.preventDefault();
    resultCont.innerHTML = `<img src="loading.svg" alt="">`;
    let key = "ema_live_EiQsAYWpDfuZcgqbICF4luRiqliQNLS3vNP1vZA6";
    let email = document.getElementById("email").value;
    let url = `https://api.emailvalidation.io/v1/info?apikey=${key}&amp;email=${email}`;
    let res = await fetch(url);
    let result = await res.json();
    let str = ``;
    
    for (key of Object.keys(result)) {
        if(result[key] !== "" &amp;&amp; result[key] !== " ") {
            str = str + `<div>${key}: ${result[key]}</div>`;
        }
    }

    resultCont.innerHTML = str;
});
				
			

Related Projects

Fun Project

Tic Tac Toe Game

The Interactive Tic Tac Toe Game is a classic two-player game implemented using HTML, CSS, and JavaScript. This engaging application

Read More »