> For the complete documentation index, see [llms.txt](https://zmink.gitbook.io/node-tcrouter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zmink.gitbook.io/node-tcrouter/guides-1/sending-text-messages.md).

# Sending Text Messages

#### Send a Text Message

A valid phone number must be entered. This function will throw an error if an invalid number is entered

```javascript
const tcr = require(" @phoenixcontactusa/node-tcrouter");

var TCRouter = new tcr("192.168.1.1", 1432, 3000);

TCRouter.sendSMS("1234567890", "Hello world from node-tcrouter")
  .then(res => {
    console.log(res);
  })
  .catch(e => {
    console.log(e);
  });
```
