Skip to content

Instantly share code, notes, and snippets.

@basilleaf
Last active December 24, 2015 11:19
Show Gist options
  • Save basilleaf/6789940 to your computer and use it in GitHub Desktop.
Save basilleaf/6789940 to your computer and use it in GitHub Desktop.
# 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