Texting from a computer in Python

Here’s a script to send a text message in Python. It uses the standard library and is very straightforward. It utilizes the fact that most major carriers allow texting via email (ie. by SMTP), so nothing more is needed than an email account and a desired target.

In my work, I use it to tell me when my computational simulations are done running. Also, it can send to any phone number and can be put in an infinite loop – days of fun, right there.

 

3 Thoughts on “Texting from a computer in Python

  1. This works great. Thanks!

  2. I can’t seem to find an online texting service for Wind. Are you considering that one of the “major” carriers?

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Navigation