SMS verification code template, Tencent Cloud SMS verification code template, verification SMS template for user registration/login

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...

SMS verification code template

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

验证码:{1},你正在{2}中操作,请于{3}分钟内填写,如非本人操作,请忽略本短信,泄露有风险

The effect of the SMS sent to the user's mobile phone is as follows

【电商嘉年华】验证码:835163,你正在秦子恒小程序平台中操作,请于5分钟内填写,如非本人操作,请忽略本短信,泄露有风险。

2. Analysis of SMS verification code template

验证码:{1},你正在{2}中操作,请于{3}分钟内填写,如非本人操作,请忽略本短信,泄露有风险

{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

验证码:835163,你正在秦子恒小程序平台中操作,请于5分钟内填写,如非本人操作,请忽略本短信,泄露有风险。

[E-commerce Carnival]
is a SMS signature,
Tencent Cloud SMS platform,
automatically added to the front of the SMS.

The final effect is

【电商嘉年华】验证码:835163,你正在秦子恒小程序平台中操作,请于5分钟内填写,如非本人操作,请忽略本短信,泄露有风险。

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324603359&siteId=291194637