How to Send Bulk SMS With C++
Thinking of integrating iSMS Philippines' features into your applications that run with C++? You can do it now by including the sample coding provided at the bottom of the page.
You can use any compilers of your choice, but we would recommend you to use Code Block or Visual Studio.
To understand more about our iSMS Philippines API Key features, please visit Developer API page. All available features and configurations will be displayed at the iSMS Philippines Developer API page.
Find out more about SMS API Key in other programming languages.
Please replace the following parameters in the script with your iSMS Philippines account info.
- un - username
- pwd - password
- dstno - destination number (complete with full country code)
#include
#include
int main ()
{
HINSTANCE result;
result=ShellExecute(NULL,NULL,"http://isms.com.my/isms_send.php?un=xxxxx&pwd=xxx&dstno=xxxxxxxxxxx&msg=xxxxxx&type=1&
sendid=xxxxx",NULL,NULL,SW_SHOWDEFAULT);
if ((int)result<=32)
std::cout << "Error!\nReturn value: " << (int)result << "\n";
return 0;
}
#include
int main ()
{
HINSTANCE result;
result=ShellExecute(NULL,NULL,"http://isms.com.my/isms_send.php?un=xxxxx&pwd=xxx&dstno=xxxxxxxxxxx&msg=xxxxxx&type=1&
sendid=xxxxx",NULL,NULL,SW_SHOWDEFAULT);
if ((int)result<=32)
std::cout << "Error!\nReturn value: " << (int)result << "\n";
return 0;
}