How to Send Bulk SMS Indonesia With C#
One of the benefits of using C# is you can multiple types of messages, e.g VCard, Flash SMS, calendars, ringtones and so on.
To understand more about our Bulk SMS Indonesia API Key features, please visit our Developer API page.
All available features and configurations will be displayed at the Bulk SMS Indonesia Developer API page. Integrate our Send SMS feature into your C# application and enjoy our SMS services.
Download C# Demo ApplicationPlease click below to find out about our send SMS API in other programming languages.
Before compiling or using the C# SMS Client, please ensure you have registered yourself with Bulk SMS Indonesia so you can replace the following information inside the script sample below. If you have not registered, click HERE to join!
- Bulk SMS Indonesia Username
- Bulk SMS Indonesia Password
- Destination number (complete with area code)
Below is a simple sample code for integrating C# SMS Client to your application.
namespace WindowsFormsApplication1
{
public partial class sendMsg : Form
{
public sendMsg()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
this.txtUser.Select();
}
private void btnSend_Click(object sender, EventArgs e)
{
// Create a new 'Uri' object with the specified string.
Uri myUri = new Uri("http://isms.com.my/isms_send.php?un=" + txtUser.Text + "&pwd="
+ txtPass.Text + "&dstno=" + txtDstNo.Text + "&msg=" + txtMsgBox.Text + "&type=1&sendid=\"isms\"");
// Create a new request to the above mentioned URL.
WebRequest myWebRequest = WebRequest.Create(myUri);
// Assign the response object of 'WebRequest' to a 'WebResponse' variable.
WebResponse myWebResponse = myWebRequest.GetResponse();
StreamReader reader = new StreamReader(myWebResponse.GetResponseStream());
string s_ResponseString = reader.ReadToEnd();
msgsent show = new msgsent();
show.ShowDialog();
}
}
}
After compiling the C# scripts, you will see a window as displayed below. Start by filling in your username and password of your iSMS account. Then follow by filling in the destination number (receipient's number) and message. Click "Send" to send out your message.
A message will be prompt to notify you that the message has been sent. Click "OK" to dismiss the message.
Download C# Demo Application
Other Contact Methods
For further enquiries, please contact us via the information below:E-mail | sales@mobiweb.com.my
Note to registered users: Please include your Username in the email.
Phone Numbers:
|