Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib smtpserver = smtplib.SMTP("smtp.gmail.com" , 587) smtpserver.ehlo() smtpserver.starttls() user = input("Enter Email address: ") import test1 password = test1.test1() importlib.import_test1 (test1.py) try: smtpserver.login (user, password) if password == "password": print("correct: " + password) except smtplib.SHTPAuthencationError: print("wrong: %s" % password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement