Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Text Message via Gmail+Python - Python Code Bank


Text Message via Gmail+Python
I found this function on another forum site and thought I would share it. Requires a Gmail account. Could be used for text bombing someones cell phone. I use it with an IRC bot I wrote.
                carriers = {"Alltel":"@message.alltel.com",
"ATT":"@txt.att.net",
"NEXTEL":"@messaging.nextel.com",
"SPRI":"@messaging.sprintpcs.com",
"TMOBILE":"@tmomail.net",
"VERIS":"@vtext.com",
"VERGIN":"@vmobl.com"}

#replace 5555555555 with a working number
def sendText(body, to = "5555555555@txt.att.net", username = "yourAccount@gmail.com", password = "Your password"):
    """Sends a text via Gmail"""
    mail_server = smtplib.SMTP("smtp.gmail.com", 587)
    mail_server.ehlo()
    mail_server.starttls()
    mail_server.ehlo()
    mail_server.login(username, password)
    mail_server.sendmail(username, to, body)
    mail_server.close()
            
Comments
techb's avatar
techb 14 years ago

ntelos = @pcs.ntelos.com