
## SendMessage {#sendmessage}

Sends the specified message to the recipients in the To, Cc, and Bcc headers.

**Returns:** The Id of the sent message.

```cpp
SendMessage(System::SharedPtr < MailMessage > msg)
```

| Parameter | Description |
| --- | --- |
| msg | The message to send. |

