Sending a test SMS notification
Written by
Updated at March 6, 2025
Management console
AWS SDK for PHP
- In the management console
, select the folder you want to create a notification channel in. - In the list of services, select Cloud Notification Service.
- Select an SMS notification channel you need.
- Navigate to the
Test numbers tab. - Click
next to the test phone number and select Send. - In the window that opens, enter the message text and click Send.
-
If you do not have the AWS SDK for PHP yet, install and configure it.
-
To send an SMS notification, use this code:
$response = $client->publish( [ 'Message' => '<message>', 'PhoneNumber' => '<phone_number>', ] ); print($response->get('MessageId'));