This article mainly describes the detailed steps for php to send a text message verification code to complete the registration function. if you are interested, you can refer to the text message verification code registration, which is very simple, it uses the cloud communication short message system (charged, but there is a test api for us ). Well, let's not talk about it.
1. after receiving the account registered in the cloud communication SMS system, download the encapsulated SMS api code, decompress the code, and findCCPRestSDK. php fileAndSendTemplateSMS. php fileTo the root directory.
2. enable SendTemplateSMS. php file, first pay attention to include_once ('. /CCPRestSDK. php '), do not include the wrong path. fill in the Test primary account, primary account Token, and application ID that the cloud communicates.
3. create the sendmessage.html page (too many security filters are not performed here)
Index