Website SMS
This topic describes the use cases for the website SMS feature and provides instructions on how to configure it.
Background information
An access key is an Alibaba Cloud credential that consists of an access key ID and an access key secret. It is used to authenticate API requests for services such as video and Short Message Service.
Use cases
-
Verification codes: Send SMS verification codes for user registration, mobile number binding, and password retrieval.
-
Order and payment notifications: Send SMS notifications to an administrator's mobile phone when a user places an order or makes a payment.
-
Shipping notifications: Send SMS notifications to a user's mobile phone when an order is shipped.
-
Message and comment notifications: Send SMS notifications to an administrator's mobile phone when a new comment is posted on the website.
-
Form notifications: Send SMS notifications to an administrator's mobile phone when the website receives new form data.
-
Free SMS quota: Your site's quota of free SMS messages, which increases upon renewal.
SMS setup
-
Enable Alibaba Cloud Short Message Service:
-
Go to the SMS settings page. In the website console, click .
-
Go to the Short Message Service management console. Click . In the Alibaba Cloud SMS Configuration dialog box, click Activate SMS Service. Then, in the Configure Alibaba Cloud API section, enter your access key ID and access key secret, and click Save and Verify to complete the configuration.
-
To apply for an sms signature and an sms template, click SMS Service Management. Click Domestic message to add a signature or template. In the Short Message Service management console, click Domestic message in the left-side navigation pane. Then, use the Signature Management and Template Management tabs to add or manage your sms signatures and sms templates.
NoteWhen adding an sms template, select one from Recommended Templates. You can modify the text or delete variables, but you must not change the variable names within the curly braces ({}), otherwise the message may fail to send.
-
On the Template Management tab, find the template code for your template, which is its unique identifier. After setting the administrator's mobile number, enter this code in the website's SMS settings and click Enable.
NoteThe available SMS types vary depending on the service edition you purchase.
-
-
Configuration: If you have reached your free SMS quota, configure Alibaba Cloud Short Message Service.
-
In the website console, click to purchase more SMS quota.
-
On the Short Message Service management console page, hover over your profile picture and click . Enter a username and select the Full access permission to obtain the AK.
NoteFor better account security, grant permissions to a RAM user. If you already have a RAM user, click Authorization > to obtain the AK.
-