Skip to content

Instantly share code, notes, and snippets.

@chaps
Last active May 29, 2017 16:05
Show Gist options
  • Save chaps/7d46d165374b8e22bd614868092f6b31 to your computer and use it in GitHub Desktop.
Save chaps/7d46d165374b8e22bd614868092f6b31 to your computer and use it in GitHub Desktop.
yagmail invalid set reset
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