Last active
December 24, 2015 11:19
-
-
Save basilleaf/6789940 to your computer and use it in GitHub Desktop.
send SMS msg with python + gmail + verizon, via http://alextrle.blogspot.com/2011/05/how-to-send-sms-message-with-python.html
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
# http://alextrle.blogspot.com/2011/05/how-to-send-sms-message-with-python.html | |
def sms_when_finished(): | |
if gmail_pw: | |
server = smtplib.SMTP( "smtp.gmail.com", 587) | |
server.starttls() | |
server.login( 'YOUR_NAME@gmail.com',YOUR_GMAIL_PW) | |
server.sendmail('YOUR_NAME@gmail.com','YOUR_PHONE_NUMBER@vtext.com','Your Fabric job is finished!') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment