Skip to content

Instantly share code, notes, and snippets.

@saleph
Created October 29, 2015 21:02
Show Gist options
  • Save saleph/9585daf20c6d4c432df7 to your computer and use it in GitHub Desktop.
Save saleph/9585daf20c6d4c432df7 to your computer and use it in GitHub Desktop.
Simple spamscript integrated with gmail
import smtplib
fromaddr = ''
toaddrs = ''
msg = "\r\n".join([
"From: %s" % fromaddr,
"To: %s" % toaddrs,
"Subject: THIS PYTHON SHIT IS WORKING!!!",
"",
])
username = ''
password = ''
server = smtplib.SMTP('smtp.gmail.com:587')
server.ehlo()
server.starttls()
server.login(username,password)
for i in range(10):
msg = "\r\n".join([
"From: %s" % fromaddr,
"To: %s" % toaddrs,
"Subject: %d THIS PYTHON SHIT IS WORKING!!!" % i,
"",
"%d" % i
])
print(i)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment