*** id: 41f32307-36e2-4d44-93c6-334569348a95 slug: /php/reference/messaging/send-result hide\_title: true max-toc-depth: 3 ---------------- [index]: /docs/server-sdk/v2/php/reference/messaging#send ## Relay.Messaging.SendResult This object returned from [`send`][index] method that represents the result of a send operation. ### Properties | Name | Type | Description | | ------------ | --------- | --------------------------------------------------------------- | | `successful` | `boolean` | Whether the send operation has successfully queued the message. | | `messageId` | `string` | The ID of the message. | ### Methods #### getMessageId Returns the ID of the queued message. **Parameters** *None* **Returns** `string` - Message ID. **Examples** > Send a message and retrieve the ID. ```php 'office', 'from' => '+1XXXXXXXXXX', 'to' => '+1YYYYYYYYYY', 'body' => 'Welcome at SignalWire!' ]; $client->messaging->send($params)->done(function($sendResult) { if ($sendResult->isSuccessful()) { $messageId = $sendResult->getMessageId(); } }); ``` #### isSuccessful Return `true` if the message was queued, `false` otherwise. **Parameters** *None* **Returns** `boolean` - True/False accordingly to the state. **Examples** > Send a message and then check if there were errors. ```php 'office', 'from' => '+1XXXXXXXXXX', 'to' => '+1YYYYYYYYYY', 'body' => 'Welcome at SignalWire!' ]; $client->messaging->send($params)->done(function($sendResult) { if ($sendResult->isSuccessful()) { // .. } }); ```