Sending E-Mail or SMS/Text Messages Using GMail and Python

Thought I would share some Python code that I use when I want an alert via text message.  I originally used this in conjunction with a script to parse a web-page every minute and let me know when a particular Bitcoin miner was available.  Yes, they sold out that fast!

This is also terrific for IT-type alerts.  On my Ubuntu NAS, I have mdadm configured to call this script if there are any drive failures in my RAID.

It’s fully cross-platform and works in Windows, Mac, and Linux.  As long as you have Python installed, just edit a few lines and you have your own customizable alert system for just about anything your computer can communicate with.


  1 comment for “Sending E-Mail or SMS/Text Messages Using GMail and Python

  1. Troy
    January 4, 2015 at 7:53 PM

    I’m following you mon!

    Useful generic utilities are of great interest to me in learning since I’m a total noob. Thanks man!

Leave a Reply

Your email address will not be published. Required fields are marked *