Skip to content

reedspool/ruby_email_txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Send a text through ruby through your e-mail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages