Amazing-Python-Scripts icon indicating copy to clipboard operation
Amazing-Python-Scripts copied to clipboard

Email validation script using SMTP library and dnspython

Open Rahul555-droid opened this issue 5 years ago • 6 comments

Aim

  • A script that will validate whether an email is valid or not.

Details

  • It will use dnspython and smtp(part of standard library) libraries of python.
  • It will first check the syntax of the Email id.
  • if it passes the first check Then check for the MX records of the domain of the email id (like gmail.com) and see whether it is able to send mails or not.
  • if it passes the second check Then it will use the smtp library to check whether the emails can indeed be sent to it or not. It won't send any message or notify the user about anything when this step executes. SMTP commands issued are: HELO, MAIL FROM and RCPT TO.

Please assign this to me for SWOC.

thank you.

Rahul555-droid avatar Jan 22 '21 09:01 Rahul555-droid

Please assign this to me for SWOC.

thank you.

Rahul555-droid avatar Jan 22 '21 09:01 Rahul555-droid

Sure Go Ahead @Rahul555-droid

avinashkranjan avatar Jan 25 '21 06:01 avinashkranjan

sorry @avinashkranjan for the delay had some stuff. Will write it in a day or so!

Rahul555-droid avatar Feb 20 '21 20:02 Rahul555-droid

I am interested in this project, would love to work on it. Can you assign it to me? (gssoc participant)

saaalik avatar Mar 12 '21 16:03 saaalik

Go Ahead @saaalik

avinashkranjan avatar Mar 12 '21 17:03 avinashkranjan

I have completed the script, documenting what I did, along with requirements and test cases. Will make a PR asap.

saaalik avatar Mar 12 '21 18:03 saaalik