Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Created January 19, 2016 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msfidelis/e60b9b4cf9ebc40a3143 to your computer and use it in GitHub Desktop.
Save msfidelis/e60b9b4cf9ebc40a3143 to your computer and use it in GitHub Desktop.
#VALIDA O LOGIN E SENHA
def test(email_user, email_pass):
try:
conn = s.SMTP('smtp.gmail.com', 587)
conn.starttls()
conn.ehlo
conn.login(email_user, email_pass)
return True,conn
except:
print conn_error()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment