-
-
Save msfidelis/e60b9b4cf9ebc40a3143 to your computer and use it in GitHub Desktop.
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
#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