diff --git a/src/index.js b/src/index.js index b93fa67..94fdc48 100644 --- a/src/index.js +++ b/src/index.js @@ -24,6 +24,7 @@ const validateRfc5322 = (email) => { */ const checkMxRecords = async (email) => { const domain = email.split('@')[1]; + try { const records = await resolveMx(domain); return records && records.length > 0;