[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud Notification Service](../../index.md) > [Step-by-step guides](../index.md) > SMS notifications > Sending a test SMS notification

# Sending a test SMS notification

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder you want to create a notification channel in.
  1. Navigate to **Cloud Notification Service**.
  1. Select an SMS notification channel you need.
  1. Navigate to the ![image](../../../_assets/console-icons/handset-arrow-in.svg) **Test numbers** tab.
  1. Click ![image](../../../_assets/console-icons/ellipsis.svg) next to the test phone number and select ![image](../../../_assets/console-icons/comment.svg) **Send**.
  1. In the window that opens, enter the message text and click **Send**.

- AWS SDK for PHP {#php}

  1. If you do not have the AWS SDK for PHP yet, [install and configure it](../../tools/sdk-php.md#aws-sdk).
  1. To send an SMS notification, use this code:

      ```php
      $response = $client->publish(
        [
            'Message' => '<message>',
            'PhoneNumber' => '<phone_number>',
        ]
      );

      print($response->get('MessageId'));
      ```

{% endlist %}