• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

AppleToolBox

Tools and Fixes for Mac, iPad, iPhone & iWatch

Search posts

  • About
  • Contact

CONNECT WITH US

CATEGORIES

  • iPhone
  • iPad
  • iPod
  • Apple Watch
  • Mac/MacBook
  • AirPods
  • Apple TV
  • News
  • Apple Services
  • HomePod
  • Reviews

SITE

  • Home
  • About Us
  • Contact
  • Advertise

Search posts

You are here: Home / Mac / Mac OS X: How to send SMS text messages from the command line

Mac OS X: How to send SMS text messages from the command line

By SK 0 comments Last updated March 21, 2014

You may send a SMS text message to any SMS-supporting cellular phone (e.g., iPhone) or device for free (and without ads), from the command line. To do this, you need TextBelt. TextBelt is a very simple, outgoing SMS API that uses carrier-specific gateways to send messages.

To send an SMS (text message) from OS X command line to a cellular phone or device:

1.Launch Terminal

2.Enter the following Terminal command:

curl “http://textbelt.com/text” -d number=1234567890 -d “message=this is where you put your message”

Like this:

command line text message

If your message is delivered successfully, you will get:

{“success”:true}

If not, you will get an error message, like these:

{“success”:false,”message”:”Exceeded quota for this phone number.”}

(note TextBelt allows maximum 75 outgoing messages per day)

or

{“success”:false,”message”:”Invalid phone number.”}

Text message from the command line delivered

Related: How to tell if you’re sending an iMessage or a text message (SMS)

sudz - apple
SK

Obsessed with tech since the early arrival of A/UX on Apple, Sudz (SK) is responsible for the original editorial direction of AppleToolBox. He is based out of Los Angeles, CA.

Sudz specializes in covering all things macOS, having reviewed dozens of OS X and macOS developments over the years.

In a former life, Sudz worked helping Fortune 100 companies with their technology and business transformation aspirations.

Related Posts:

  • Should I sign up for Apple’s iPhone Upgrade Program?
    Should I sign up for Apple’s iPhone Upgrade Program?
  • How To Use Dual SIM and eSIM on iPhone 11, XR, SE, & XS
    How To Use Dual SIM and eSIM on iPhone 11, XR, SE, & XS
  • Mac Tips For New Users In 2023
    Mac Tips For New Users In 2023
  • How To Start Using Regex With The Shortcuts App
    How To Start Using Regex With The Shortcuts App
  • iOS 13 or iPadOS problems and how to fix them - Troubleshooting Guide
    iOS 13 or iPadOS problems and how to fix them -…
  • The Best iPhone And Mac Shortcuts For Beginners
    The Best iPhone And Mac Shortcuts For Beginners
  • How To Use The Mac Terminal: The Basics
    How To Use The Mac Terminal: The Basics
  • How To Run Linux On Mac: A Step-by-Step Guide
    How To Run Linux On Mac: A Step-by-Step Guide
  • AirPods Pro---The Complete Guide
    AirPods Pro---The Complete Guide

Reader Interactions

Write a Comment Cancel reply

Primary Sidebar

Recent Posts

  • How to Control Individual Application Volume on Mac
  • How to Create Custom Music Widgets on iPhone and iPad
  • How to Recover Notes Stored on Your Mac
  • iPad For The Visually Impaired: How To Set Up Your iPad
  • Inconsistent Wi-Fi Speeds on Mac: Why, and How to Fix
  • How to Reduce Digital Eye Strain When Using a MacBook: 7 Tips

Connect with us

Footer

ABOUT

  • About Us
  • Contact us
  • Advertise
  • Privacy
  • Terms of Use

GUIDES

  • iOS 13 & iPadOS
  • Apple ID
  • iCloud
  • App Store
  • iTunes
  • FaceTime
  • iMessage
  • Siri
  • Books and iBooks
  • Game Center
  • AirPlay

CONNECT

  • Facebook
  • Twitter
  • FeedBurner
  • YouTube

© Copyright 2010-2023 Guiding Tech Media · All Rights Reserved

This site and its content are in no way affiliated or endorsed by Apple, Inc. · Reproduction without explicit permission is prohibited