Skip to content

About

checks if the email is reachable

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Validate Email

validate email and check the mail room is reachable

How to use

isEmail to validate email for correctness

import { isEmail } from '@onisaint/validate-email'

isEmail(
    "help@xyz.com",
    {
        hostWhiteList: [], // (optional) returns true for any of the domains
        hostBlackList: [], // (optional) returns false, and takes priority over whitelist
        ignoreMaxLength: false, // (optional) do-not validate long emails
    },
)

isEmailReachable checks if the domains mail servers are reachable

import { isEmailReachable } from '@onisaint/validate-email'

isEmailReachable(
    "help@xyz.com",
    {
        skipValidityTest: false // (optional) checks for email correctness using `isEmail`
    },
)

About

checks if the email is reachable

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages