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
#!/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 |