Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Is it possible to develop a VB.NET application to send SMS via way2sms or 160by2?


How
Posted
Updated 28-Aug-17 1:17am

It is 100% Possible

To use bulk SMS API from various providers Try following...
I am using the same....

www.freesmsapi.org[^]

VB
Dim sURL As String
Dim objReader As StreamReader
sURL = "http://www.freesmsapi.org/sms.php?provider=site2sms&uid=XXXXXXXXXX&pwd=password&phone=" & lstsmsph.Items.Item(i) & "&msg=" & txtsmstext.Text
Dim sResponse As WebRequest
sResponse = WebRequest.Create(sURL)
            
Dim objStream As Stream
objStream = sResponse.GetResponse.GetResponseStream()
objReader = New StreamReader(objStream) 'Final Response



Hope It helps !
 
Share this answer
 
Comments
AnnuBhai 29-Jun-13 7:49am    
Thanx for rply

but wht kind of pakages import for WebRequest,StreamReader
AnnuBhai 29-Jun-13 7:58am    
Wht is UID
PAssword
and Phone No


plz explian me

Phone means sender or reciever persons

and UID?????????
AnnuBhai 29-Jun-13 8:01am    
the link u gave me that output is -1 on d browser
you need to import system.net and system.net.mail



Uid is your username and phone is number to whom you want to send sms.

Visit the given link for more info
 
Share this answer
 
Comments
AnnuBhai 29-Jun-13 8:27am    
actually this is not working
i have 2 that is Error Sending Message

sooo wht is d next steps
jenitshah 29-Jun-13 9:29am    
Check the connection string and its parameters properly. How It doesnt work, Currently I have embeded this API in larger School Management System, They are sending about 300 SMSs Per day using different operators using the same API.
kishan dhingani 29-Jun-13 8:53am    
ya it's not working proper...
jenitshah 29-Jun-13 9:30am    
What is the error code in your case?
AnnuBhai 29-Jun-13 9:34am    
2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900