How can i verify an email without sending emails.
if an user sign-up with an email like 'asdasdasdada@email.com', i need to verify if that email exists, and i can send emails.
i already tried with deep-email-validator but it doesn't work correctly, it says that a existent email is not valid
async function isEmailValid(email: string) {
return emailValidator(email);
}
const result = isEmailValid('<my real email>');
console.log(result)
output:
{
valid: false,
validators: {
regex: { valid: true },
typo: { valid: true },
disposable: { valid: true },
mx: { valid: false, reason: 'MX record not found' },
smtp: { valid: false }
},
reason: 'mx'
}