Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Validate if email address exists in JavaScript [duplicate]

Tags:

javascript

I need to check whether my email address has valid host, exist for example [email protected] might return valid meanwhile [email protected] might return invalid (because invalid host)

I stumbled upon a code in git for golang that satisfy my needs for that https://github.com/badoux/checkmail, but currently at the moment i'm looking for the solution in javascipt, any help will be appreciated.

P.S. : I am using this code as a script inside my HTML

like image 503
DemiDust Avatar asked Dec 01 '25 21:12

DemiDust


1 Answers

Actually to verify that an email exists and is active you have to send a message to the email server and check the response. That cannot be done entirely in javascript although you can rely on a service instead than on your backend like this

like image 139
Mosè Raguzzini Avatar answered Dec 03 '25 12:12

Mosè Raguzzini