Last active
May 29, 2017 16:05
-
-
Save chaps/7d46d165374b8e22bd614868092f6b31 to your computer and use it in GitHub Desktop.
yagmail invalid set reset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yagmail | |
email = "" | |
invalid_pwd = "" | |
valid_pwd = "" | |
yagmail.register(email, invalid_pwd) | |
try: | |
yag = yagmail.SMTP(email) | |
except Exception, e: | |
print e | |
pass | |
yagmail.register(email, valid_pwd) | |
yag = yagmail.SMTP(email) | |
print yag.user | |
yag.user == email | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment