SMS verification codes are very common, and
can be used for user registration/login,
sending verification code SMS messages to users, and
determining whether they are a real and valid user.
Below, Mr. Ziheng shared the Tencent Cloud SMS verification code template, and
other SMS platforms are similar...
When using the Tencent Cloud SMS API for development, you
need to set the SMS template in the Tencent Cloud background first.
Click here to
watch the video " Tencent Cloud Add SMS Template "
to understand the operation process
1. SMS verification code template
One type of verification code template used by Mr. Ziheng is as follows
The effect of the SMS sent to the user's mobile phone is as follows
2. Analysis of SMS verification code template
{1}, {2}, {3} in the verification code template
represent parameters, you can replace the specific content with the correct value according to your implementation
during development ,
In the above example,
{1} = 835163
{2} = Qin Ziheng applet platform
{3} = 5
The content of the text message after {n} is replaced is
[E-commerce Carnival]
is a SMS signature,
Tencent Cloud SMS platform,
automatically added to the front of the SMS.
The final effect is
Click here to
watch the video " Tencent Cloud Add SMS Signature "
to understand the operation process
You can design your own verification code template by referring to Teacher Ziheng's SMS verification code template.
Click here to
watch the video series of " Tencent Cloud SMS Interface Development
" to understand the implementation process and download the relevant source code