Code Monkey home page Code Monkey logo

sms4you's Introduction

sms4you

Easy gateway to send and receive SMS via email. (To be extended to work with other protocols like XMPP or Matrix)

sms4you on a Raspberry Pi

Idea

Connect a suitable GSM modem or phone containing the SIM card into a computer (e.g. a Raspberry Pi) at a fixed place. Give sms4you access (imap and smtp) to one dedicated email address. It will use this connection to receive emails to be sent out as SMS and to send out emails with received SMS messages. The phone number will be managed over the email's subject and only emails are accepted coming from a certain email address.

Concretely - what for?

There can be many reasons, why you want to use sms4you. Here are some examples:

  • You live in the internetz, and you just need a gateway to this old thing "SMS", which some people really still seem to use.
  • You travel and use local SIM cards, but still want to be able to receive SMS confirmation codes for banks and services to your usual number.
  • You don't want to carry a (registered) SIM card for good reasons and stil be able to send and receive SMS.

Requirements

sms4you is implemented as a Python script. It relies on the gammu library for communication via SMS, and uses the libaries imaplib and smtplib to interact with an email address.

Installation

Manually

  • Install dependencies: apt-get install gammu python-gammu python-pip python-virtualenv

  • Download the code: git clone https://github.com/xamanu/sms4you.git

  • Go into the new directory: cd sms4you

  • Install python dependencies: pip install -e .

  • Copy and edit the configuration file: mkdir data && cp env-example data/.env

  • Run the program to check and send emails and sms: sms4you

  • Probably you want configure a cronjob to check regularily for sms and emails: * * * * * root sms4you

Docker

A simple dockerized setup, based on docker compose.

  • wget https://raw.githubusercontent.com/xamanu/sms4you/master/docker/docker-compose.yml
  • Adjust the environment variables in the downloaded file with your settings.
  • docker-compose run sms4you

sms4you's People

Stargazers

Karolis Stasaitis avatar  avatar

Watchers

Neustradamus avatar James Cloos avatar Anjan Momi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.