GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - william-reed/PyMS: Send text messages from python

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
carriers.sql
carriers.sql
 
 
csv_to_dict.py
csv_to_dict.py
 
 
example.py
example.py
 
 
gateways.py
gateways.py
 
 
sender.py
sender.py
 
 
us_gateways.csv
us_gateways.csv
 
 

Repository files navigation

PyMS

Send text messages from python

Usage

As found in example.py

from gateways import GATEWAYS
from sender import PyMS

pyms = PyMS()
pyms.connect()
pyms.send_sms('1234567890', GATEWAYS['SPRINT']['SMS_EMAIL'], "Test")
pyms.disconnect()

Defaults

PyMS uses a few default settings to make this all work. The following inputs can be provided to PyMS(...)

  • username the account username in the form [email protected]. Defaults to system environment variable PYMS_USERNAME
  • password the password for the account. Defaults to system environment variable PYMS_PASSWORD
  • host the SMTP server hostname. Defaults to smtp.gmail.com
  • port the SMTP server port. Defaults to 465

Gmail

As found out from radtek on Stack Overflow, you need to allow your Gmail account to work with a less secure app by flipping a switch here https://www.google.com/settings/security/lesssecureapps as this type of login is considered unsecure

Gateways

PyMS uses SMS / MMS gateways to deliver messages to a mobile device. Most US carriers should be provided in the GATEWAYS dict in gateways.py for usage. These gateways taken from here

Drawbacks

Currently the carrier of the mobile device must be known to send a message

This may be overcome by hitting http://www.fonefinder.net/ and scraping the results however it presents issues if a user changes there carrier but maintains the same phone number. Most other services are paid for including any API's that exist.

About

Send text messages from python

Topics

gatewaygatewaysmessagemmspymspythonpythonsmsreminderreminder-servicesmstexttext-message

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.