About encapsulation of executable SMS send file call complete implementation SMS trigger send

Source: Internet
Author: User

Recently in the process of solving a problem, want to take advantage of the existing SMS interface, but from the early project of the SMS function layer stripped out of actually not their own imagined port four elements (just joined the work, laughed at), but a basic C language written EXE file, but also fixed deployment on the specific server, In each program call process, will be on this basis to check the IP address, that is, five elements, security can be compared to the simple materializing on the account password more insurance, and IIP address detection restrictions in the region will let the security level higher. Do not know whether other enterprises are the same way?

This assumes that the Message.exe file is a specified SMS interface file that needs to be called (it cannot be executed alone, that is, the parameter is missing) , and the externally deployed link address is http:\\www.xxx18800000000\message . Provide two ways of use ;

  1. Using Cmd.exe

The overall meaning is to assemble, invoke, and release in a DOS environment.

You can simply define a variable of a string type and assign the network path of the Message.exe file to that variable, then start the Cmd.exe file by compiling the program, and then import the assembled string into dos in the form of a command, and run the release.

2. Use the deployed link address

By invoking the browser process to run the link address, but for the link operation still need to fragment completion, that is, the receiver pays contact's number and send content two elements must be variable, you can pass through the interface of the parameters, and then assemble the link again, then the assembly link through the browser process open, close the process!

About encapsulation of executable SMS send file call complete implementation SMS trigger send

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.