devmehq / email-validator-js

Verify email address checking MX records, and SMTP connection, check for disposable email addresses and free email providers.
https://dev.me/products/email
MIT License
75 stars 21 forks source link

Readme example throws type error - correction enclosed: #145

Closed henryp0p closed 6 months ago

henryp0p commented 1 year ago

It is currently 'mailBox' which is incorrect, instead it should be

const { validFormat, validSmtp, validMx } = await verifyEmail({
  emailAddress: "example@domain.com",
  verifyMx: true,
  verifySmtp: true,
  timeout: 3000,
});
pH-7 commented 1 year ago

Indeed @henryp0p. I've raised a PR for this https://github.com/devmehq/email-validator-js/pull/150