---
title: "sendSMS(_:message:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
platforms: [macOS 10.7+]
path: "iobluetooth/iobluetoothhandsfreedevice/sendsms(_:message:)"
---

# sendSMS(_:message:)

Sends a text message to a phone number.

## Declaration

```swift
func sendSMS(_ aNumber: String!, message aMessage: String!)
```

## Parameters

- `aNumber`: The phone number to send the message to.
- `aMessage`: A string containing a message. The message must be no longer than 160 characters.

## See Also

### Sending Messages and Commands

- [sendDTMF(_:)](iobluetooth/iobluetoothhandsfreedevice/senddtmf(_:).md)
- [send(atCommand:)](iobluetooth/iobluetoothhandsfreedevice/send(atcommand:).md)
- [send(atCommand:timeout:selector:target:)](iobluetooth/iobluetoothhandsfreedevice/send(atcommand:timeout:selector:target:).md)
