Send text messages using SMS gateways
Send text messages using your Gmail account and SMS gateways
First, install this package with pip:
$ pip install texter
Then, set some environment variables so texter can send mail from your Gmail account:
$ export GMAIL_EMAIL=<email> $ export GMAIL_PASSWORD=<password>
from texter import send_message send_message('1234567890', 'verizon', 'Hello from texter.')
There is also a standalone script you can use:
$ ./send_message 1234567890 verizon "Hello from texter."
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.