---
title: "send(_:to:)"
framework: messages
role: symbol
role_heading: Instance Method
path: "messages/mscriticalsmsmessenger/send(_:to:)"
---

# send(_:to:)

Sends a critical message to the specified recipient.

## Declaration

```swift
func send(_ message: MSCriticalMessage, to recipient: MSRecipient) async throws -> Bool
```

## Parameters

- `message`: The message to send.
- `recipient`: The recipient to send the message to.

## Mentioned in

Sending SMS messages from an app

## Return Value

Return Value true if the message successfully sends.

## Discussion

Discussion There’s no user interaction necessary for the framework to send this message. If the message sends successfully, the framework displays a notification indicating sending the message was successful. Upon error, this method throws a MSCriticalMessagingError/errorDomain error. note: The system may impose a rate limit on frequency of messages sent, if usage exceeds this limit the framework  returns a  MSCriticalMessagingError.sendFailed error.
