A simple way to check if an email exists! You can also check the domain of the email with the second parameter. Warning: Port 25 must be allowed! (Or email checks return false)
npm i @epiccarlito/emailchecker
import { checkEmail } from "@epiccarlito/emailchecker";
const { checkEmail } = require("@epiccarlito/emailchecker");
async function main() {
let result = await checkEmail("exampleemail@gmail.com", "gmail.com");
return result;
}
main(); // Returns false
Inspired by email-existence. Both packages check the codes of the MX server to identify if an email address accepts emails and exists.