TWILIO.SMS.SEND
Premium
Experimental
Sends a SMS message to specified phone number. In its simplest form only text and recipient number are required. But for more advanced settings it is also possible to pass a JSON object containing additional parameters. Please refer to send message API for more information about available and supported options (as of 2021-07-30).
Syntax
=TWILIO.SMS.SEND(TextOrJSON, [ToContact], [FromContact], [ResponseTarget])
Arguments
| Name | Type | Description |
|---|---|---|
| TextOrJSON | String or JSON | The text to send or a JSON which contains the text and additional required or optional parameters |
| ToContact (optional) | String | The recipient phone number, in E.164 format. Not required if specified within passed JSON. |
| FromContact (optional) | String | A Twilio phone number of the sender, in E.164 format, or short code. Not required if specified within passed JSON. |
| ResponseTarget (optional) | Target | Specify inbox, outbox, cell or cell-range to write any response to |
Return
| Type | Description |
|---|---|
| Boolean,Result,Error | Request result if no target is specified or TRUE. In case of an error the corresponding error-code is returned. |
Examples
| A | B | |
|---|---|---|
| 1 | User | account-sid |
| 2 | Password | auth token |
| 3 | body | Hello from Twilio! |
| 4 | to | +4915123456780 |
| 5 | from | +4915123456789 |
| Formula | Result | Comment |
|---|---|---|
| Sends a SMS with text "Hello from Twilio!" to +4915123456780 | |
| Same as before but using JSON to specify required information |