473,394 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How i can know a Gateway for sending sms from asp.net to mobile

144 100+
Hello to everybody, how i can know a sms gateway or webservice so that i can put in the "uriString" in the program

And also pl tell me any error in program

Expand|Select|Wrap|Line Numbers
  1. Dim client As New WebClient
  2.         Dim sendNameValueCollection As New NameValueCollection
  3.         Dim uriString As String = ' "wwwe.way2sms.com"
  4.  
  5.  
  6.  
  7.         Dim login As String = "sdds@mm.in"
  8.         Dim passwd As String = "dfdfewf"
  9.         Dim type As String = "textmsg"
  10.         Dim phone As String = "919000490"
  11.         Dim content As String = txtcontent.Text
  12.  
  13.         Try
  14.              sendNameValueCollection.Add("login", login)
  15.             sendNameValueCollection.Add("passwd", passwd)
  16.             sendNameValueCollection.Add("type", type)
  17.             sendNameValueCollection.Add("phoneno", phone)
  18.             sendNameValueCollection.Add("message", content)
  19.             Dim responseArray As Byte() = client.UploadValues(uriString, "POST", sendNameValueCollection)
  20.             lblSuccess.Text = ControlChars.Lf + "Response received was " + Encoding.ASCII.GetString(responseArray)
  21.             sendNameValueCollection.Clear()
  22.         Catch we As WebException
  23.             lblSuccess.Text = "Network Error: " + we.Message + ControlChars.Lf + "Status code: " + we.Status
  24.         Catch ufe As UriFormatException
  25.             lblSuccess.Text = "URI Format Error: " + ufe.Message
  26.         End Try
  27.  
  28.     End Sub
  29.  
I have a tried a lot... , but i could not

Please help me to finish as early as posible......

So much time i failed...

Posted Date:-18 feb 2008

Davidson
Feb 17 '08 #1
1 980
kenobewan
4,871 Expert 4TB
This article may help you:
Sending SMS using ASP.NET (C#) through HTTP
Feb 18 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Erik Fjelldal | last post by:
Hello everybody I am making a function sending SMS, to send SMS we subscribe for a service from the norwegian telephone company Netcom To send these messages we send a HttpWebRequest over...
1
by: vidhyapriya | last post by:
hi..i am sending sms message from my mobile to server...i am using sms gateway to receive the incoming sms...i want to store the incoming sms in my sql server database..how to do this.. can anyone...
3
by: senthurganesh | last post by:
Hai Am Developing SMS Sending Application using C#.Net. MY Problem Is Sending SMS via COM3.But It Throw Different Exception . Till Now Am Didn't Face That Problem. Am Connect The Mobile...
2
by: jagmonni | last post by:
hi everybody, i'm a PHP developer. I need to implement a functionality to my website like Sending SMS to mobiles from my website which is based on PHP So please anyone send me details of how...
6
by: cnsabar | last post by:
Hi., I am using following code to send sms through e-mail use Mail::Sendmail; %mail = (To => '10digitMobileNo@airtelkk.com', From => "mymail\@company.com", Message =>...
18
by: Grant Edwards | last post by:
Could whoever is responsible for the gateway that is grabbing my postings off of Usenet and e-mailing them out please fix the headers in the mail messages so that I don't get the bounce messages?...
1
by: libish | last post by:
hi all.. can any one help me in sending an sms from my mobile through a c#.net program? i kno there is a class called Microsoft.WindowsMobile.PocketOutlook.SmsMessage class to send an SMS but...
8
by: nargis2009 | last post by:
Hi, I have been encountering problems with my web page which is supposed to send email, and wondered if anybody can help find error. Initially I had all codes in one page and on click of...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.