Skip to content

Instantly share code, notes, and snippets.

@MayankFawkes
Created August 18, 2020 10:34
Show Gist options
  • Select an option

  • Save MayankFawkes/169853db1375b9771d76653bd8bd59ab to your computer and use it in GitHub Desktop.

Select an option

Save MayankFawkes/169853db1375b9771d76653bd8bd59ab to your computer and use it in GitHub Desktop.
Valid Email Checker Python
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