Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Notification Service
    • Overview
    • Getting started with mobile push notifications
    • Getting started with in-browser push notifications
    • Getting started with SMS
    • All guides
      • Creating an SMS notification channel
      • Deleting an SMS notification channel
      • Adding a test phone number
      • Deleting a test phone number
      • Sending a test SMS notification
      • Exiting the sandbox
    • Configuring logging
    • Overview
    • Mobile push notifications
    • In-browser push notifications
    • SMS
    • Quotas and limits
    • All tools
    • AWS CLI
    • AWS SDK for C++
    • AWS SDK for Go
    • AWS SDK for Java
    • AWS SDK for JavaScript
    • AWS SDK for Kotlin
    • AWS SDK for .NET
    • AWS SDK for PHP
    • AWS SDK for Python (boto3)
  • Pricing policy
  • Monitoring metrics
  • Logs Cloud Logging
  • Release notes
  1. Step-by-step operations
  2. SMS notifications
  3. Sending a test SMS notification

Sending a test SMS notification

Written by
Yandex Cloud
Updated at March 6, 2025
Management console
AWS SDK for PHP
  1. In the management console, select the folder you want to create a notification channel in.
  2. In the list of services, select Cloud Notification Service.
  3. Select an SMS notification channel you need.
  4. Navigate to the Test numbers tab.
  5. Click next to the test phone number and select Send.
  6. In the window that opens, enter the message text and click Send.
  1. If you do not have the AWS SDK for PHP yet, install and configure it.

  2. To send an SMS notification, use this code:

    $response = $client->publish(
      [
          'Message' => '<message>',
          'PhoneNumber' => '<phone_number>',
      ]
    );
    
    print($response->get('MessageId'));
    

Was the article helpful?

Previous
Deleting a test phone number
Next
Exiting the sandbox
© 2025 Direct Cursus Technology L.L.C.