---
title: "sendSMS"
canonical: "https://support.appfire.com/space/PSJ/15487600/sendSMS"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | sendSMS(senderName, phone, text) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Sends an SMS using the ENMS service or some other provider.

Sends an SMS using the ENMS service or some other provider. See the Configuration manual for more details and supported providers. Returns 'false' if sending failed.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| senderName | String | Yes | The sender name can be either a sequence of maximum 11 characters or a phone number and must not contain spaces. |
| phone | String | Yes | MSISDN of the destination. |
| text | String | Yes | Text. |

## Return Type

**Boolean**

Returns 'true' if the message was sent successfully or 'false' if an error occurred.

## Example

```
sendSMS("KEPLER","+40123456789","Hello world!");
```


> ⚠️ See the Configuration manual for more details and supported providers. Returns 'false' if sending failed. More about the configuration can be found at [SMS Sender Configuration](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15488619) section.


## See also

> Macro (contentbylabel)