How to send SMS using Termux?

You can use Termux to send SMS messages using the termux-sms-send command. Here’s how to do it:

  1. Open Termux and make sure you have granted it permission to access your SMS messages. You can do this by typing termux-setup-storage and giving the necessary permissions when prompted.
  2. Type the following command to send an SMS message
termux-sms-send -n <phone_number> "<message>" 

Replace <phone_number> with the phone number of the person, you want to send the message to, and replace <message> with the content of the message you want to send.

For example, if you want to send a message to the phone number 1234567890 with the content “Hello, this is a test message”, you would type

termux-sms-send -n 1234567890 "Hello, this is a test message"

Press Enter to send the message.

Note that you may be charged for sending SMS messages depending on your carrier and plan.

Leave a Comment