Last active
November 19, 2022 08:38
-
-
Save MayankFawkes/f45d12fc13b5721a6525fbadf227b700 to your computer and use it in GitHub Desktop.
Valid Email Checker JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const net = require('net') | |
const socket = net.createConnection(25, 'gmail-smtp-in.l.google.com', () => { | |
console.log('Connected!') | |
socket.write('HELO gmail\r\n') | |
socket.write('MAIL FROM: <[email protected]>\r\n') | |
socket.write('RCPT TO: <[email protected]>\r\n') | |
socket.write('QUIT\r\n') | |
}) | |
socket.on('data', (buff) => console.log(buff.toString())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment