GithubHelp home page GithubHelp logo

ruby_email_txt's Introduction

SMS From Terminal

Quick script for sending an SMS to any US number from a computer terminal, via a Gmail account.

Usage

  1. Download script and install gems

     $ git clone https://github.com/reedspool/ruby_email_txt.git;
     $ bundle install;
    
  2. Fill in your e-mail credentials in config.yml

  3. If you use 2-Factor Auth (You should!), you will need to generate an App Password, and use it in config.yml

    $ ruby send_txt_to.rb 8085553033 "I lost my phone :(";
  1. Make a bash alias for easy texting

     $ alias sms_to="ruby send_txt_to.rb ";
     $ sms_to 8085553033 "I lost my phone :(";
    
  2. Check your e-mail inbox for replies!

  3. If you use this often, you will want to make a Gmail filter for all the delivery failures. These are normal. See Notes.

Notes

This script is not fit for production use. It is a toy.

It works by spamming each US SMS gateway for each method without knowledge of which will work. Many "failed delivery" messages will be sent to your inbox with each use because of the naive method.

Requires gmail gem. See Gemfile and gmailgem on Github.

ruby_email_txt's People

Contributors

reedspool avatar

Stargazers

Glenn Mossy avatar

Watchers

 avatar James Cloos 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.