Created
August 18, 2020 10:34
-
-
Save MayankFawkes/169853db1375b9771d76653bd8bd59ab to your computer and use it in GitHub Desktop.
Valid Email Checker Python
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
| import socket | |
| mailserver = 'gmail-smtp-in.l.google.com' | |
| clientSocket=socket.socket(socket.AF_INET,socket.SOCK_STREAM) | |
| clientSocket.connect((mailserver, 25)) | |
| print(clientSocket.recv(2048)) | |
| clientSocket.send('HELO verifyemailaddress.org \r\n'.encode()) | |
| print(clientSocket.recv(2048)) | |
| clientSocket.send('MAIL FROM: <noreply@verifyemailaddress.org>\r\n'.encode()) | |
| print(clientSocket.recv(2048)) | |
| clientSocket.send('RCPT TO: <mksdsd233sssdsdpta74d@gmail.com>\r\n'.encode()) | |
| print(clientSocket.recv(2048)) | |
| clientSocket.send('QUIT\r\n'.encode()) | |
| print(clientSocket.recv(2048)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment