Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Email Validator/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Email Validator
Script to actually validate and check if an email id exists 🔥
## Installation

Install the dependencies and you are ready to go!

```sh
pip install -r requirements.txt
```
2 changes: 2 additions & 0 deletions Email Validator/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
py3dns==3.2.1
validate-email-address==1
12 changes: 12 additions & 0 deletions Email Validator/validate_email.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from validate_email_address import validate_email
# install dependencies from requirements.txt

# user input
email = input("Enter the email address: ")

#checks if the email given is valid
if validate_email(email, verify=True):
print(f"The email {email} is valid ✅")
else :
print(f"The email {email} is invalid ❌")