> For the complete documentation index, see [llms.txt](https://how.router.works/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://how.router.works/dev/command/mmcli/sms-message.md).

# SMS Message

Short Message Service (SMS) is a technology that allows the sending and receiving of brief text messages between mobile devices. It uses cellular networks to transmit messages of up to 160 characters and is widely employed for personal communication, business promotions, and various application notifications.

### Check the modem index number

Check the modem index with the command below.

```
mmcli -L
```

### Editing SMS

The following commands are used to create short message content and send objects.

<pre><code><strong>mmcli -m [modem-index] --messaging-create-sms="text='[message content]',number='[phone nubmer]'"
</strong></code></pre>

> Example:
>
> **mmcli -m 4 --messaging-create-sms="text='THIS IS A TEST',number='13677777777'"**
>
> \----------------------------------
>
> Messaging | create sms: /org/freedesktop/ModemManager1/SMS/79

### Sending SMS

Once the previous command is executed, an index number is generated. You can use this index number to execute the command and send SMS messages.

```
mmcli -s [sms-index-number] --send
```

> Example:
>
> mmcli -s 79 --send
>
> successfully sent the SMS

### Process of Sending SMS

The process of sending a text message is as follows:

```
╔═╗╦ ╦╔╦╗╔╦╗╔═╗╔═╗╦═╗╦═╗╔═╗╦ ╦╔╦╗╔═╗╦═╗
║ ║║ ║ ║  ║║║ ║║ ║╠╦╝╠╦╝║ ║║ ║ ║ ║╣ ╠╦╝
╚═╝╚═╝ ╩ ═╩╝╚═╝╚═╝╩╚═╩╚═╚═╝╚═╝ ╩ ╚═╝╩╚═
---------------------------------------
☼ ☼ ☼       OUTDOOR ROUTER        ❅ ❅ ❅
---------------------------------------

root@OutdoorRouter:~# mmcli -L
    /org/freedesktop/ModemManager1/Modem/4 [Quectel] EM120K-GL
root@OutdoorRouter:~# mmcli -m 4 --messaging-create-sms="text='THIS IS A TEST',number='13677777777'"
  ------------------------
  Messaging | created sms: /org/freedesktop/ModemManager1/SMS/0
root@OutdoorRouter:~# mmcli -s 0 --send
successfully sent the SMS
root@OutdoorRouter:~#
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://how.router.works/dev/command/mmcli/sms-message.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
