How to Send Bulk SMS Singapore With VB.net
In Bulk SMS Singapore, we also provide methods for your to send SMS using Visual Basic.
To understand more about our Bulk SMS Singapore API Key features, please visit our Developer API page.
All available features and configurations will be displayed at the Bulk SMS Singapore Developer API page. Just integrate SMS API into your Visual Basic application and enjoy our services.Download VB.NET Demo Files
Before compiling the program, please make sure you have registered yourself with Bulk SMS Singapore so you can replace the following information inside the script sample below. If you have not registered, click HERE to join!
- Bulk SMS Singapore Username
- Bulk SMS Singapore Password
- Destination number (complete with area code)
The phone number parameter can be comma separated value, for instance "6593456789,6594567890". For sending to one recipient, pass the phoneno as "6595678905"
Public Function SendSMS(ByVal phoneno As String, ByVal msg As String)
phoneno = phoneno.Replace(",", ";")
Dim phone_arr As String() = Split(phoneno, ";")
For Each pno As String In phone_arr
Dim url As New System.Uri("http://www.isms.com.my/isms_send.php?un=" + isms_username +
"&pwd=" + isms_password + "&dstno=" + pno + "&msg=" + msg + "&type=1&sendid=")
Dim req As System.Net.WebRequest
req = System.Net.WebRequest.Create(url)
Dim resp As System.Net.WebResponse
resp = req.GetResponse()
Dim reader As StreamReader = New StreamReader(resp.GetResponseStream())
Dim balance_str As String = Trim(Strip(reader.ReadToEnd().Trim()))
req = Nothing
Catch ex As Exception
req = Nothing
Download VB.NET Demo Files
Contact Bulk SMS SingaporeIf you need further information, please contact us via the information below:
E-mail | firstname.lastname@example.org
Note to registered users: Please include your Username in the email.
If operators are busy, please call the next number below.