2

Is there any package or any other way to verify the entered email address is exist or not. SendGrid will send whatever email address you are passing but it is not telling the input email address is exists or not.

Please let me know if there is an way to verify it in React.js or Node.js.

Thanks in advance.

1
  • 1
    There's no way to guarantee that an email address is valid just from the address, no. As long as the domain exists and has an A or MX record then the domain part is potentially valid; you could try connecting to port 25 on one of those IP addresses to verify that there is a mail server there, but there's no way to be sure that the part before the @ will be accepted by the mail server without actually trying to send an email. Which is why sites send 'click here to confirm your address' emails I suppose. Commented Jan 2, 2021 at 13:52

2 Answers 2

1

npm install deep-email-validator

https://www.npmjs.com/package/deep-email-validator

This dependency is going to take care of all the heavy lifting for us.It carries out the following tests:

  • Validates the email regex
  • Checks for common typos
  • Determines if an email was generated by disposable email service.
  • Checks for MX records on the DNS server.
  • Determines if the SMTP server is running.
  • Validates the existence of the mailbox on the SMTP server.
Sign up to request clarification or add additional context in comments.

1 Comment

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
0

You need to use third party API's for that. See: https://geekflare.com/email-verification-api/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.