Skip to content

Instantly share code, notes, and snippets.

View dbluestein's full-sized avatar

Dan Bluestein dbluestein

View GitHub Profile
@dbluestein
dbluestein / google_sms_responder.py
Created January 17, 2014 07:39
SMS autoresponder with Google Voice, Gmail and a cron job
#!/usr/bin/env python
# 1. In Google Voice settings, set it to forward SMS messages to your Gmail.
# 2. Set up a Gmail filter to add a label to SMS messages that you want to
# auto-reply to (e.g. if they are from a specific sender, if they contain
# certain text, etc).
# 3. Fill in gmail address, password, and your target gmail label below.
# 4. Run this from cron to have it periodically check for messages.
from smtplib import SMTP