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