Skip to content

Instantly share code, notes, and snippets.

/RCEtext Secret

Created June 11, 2012 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/857762720f4ffffb9fce to your computer and use it in GitHub Desktop.
Save anonymous/857762720f4ffffb9fce to your computer and use it in GitHub Desktop.
Send yourself a text message from RCE when batch is done
#send yourself a text message when batch is done
import smtplib
msg = "hooray your batch is done!"
server = smtplib.SMTP('smtp.gmail.com',587)
server.ehlo() # say hi to server
server.starttls()
server.ehlo() # it is needy
server.login('your_username','your_password')
server.sendmail('your_username','6171234567@mms.att.net', msg)
server.quit()
#other carriers:
#Verizon: vtext.com
#tMobile: t-mobile.net
#Sprint: messaging.sprintpcs.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment