-
-
Save anonymous/857762720f4ffffb9fce to your computer and use it in GitHub Desktop.
Send yourself a text message from RCE when batch is done
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
#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