.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

how to send sms to mobile from asp.net application

Posted By: pradeep     Posted Date: February 25, 2010    Points:2   Category :ASP.Net
i want to send sms to mobile from asp.net front end application.in my application one textbox is there and one messagebox there if the user enters phone no in textbox and message in message box and on clicking send button message has to go to that mobile.so plz send source code with complete explanation because i have to give seminar on that code with line by line explanation.plz send code with explanation as early as possible...........

Author: Lalij Mer             
Posted Date: February 25, 2010     Points: 5   

You can send SMS text messages using the following code snippet. The code uses a web service that can send an SMS text message to 90% of all mobile phones.

If you go to the URL http://www.salcentral.com/help/msgservice.com then you can download a .zip file that contains code for the whole ASP.NET project.

This .zip file is very interesting. It demonstrates how pay to use web services can be used within anyones ASP.NET project.

The code snippet to access the web service is as follows

'Before using the below code you must link the web service
'Information available on www.salcentral.com

Private Sub SendMessage(ByVal p_sPhoneNumber As String, ByVal p_sMessage
As String, ByVal p_sUsername As String, ByVal p_sPasskey As String)

Dim smsService As New SMSService.SMSMessagingprocessService()
Dim sCountryCodes As String


If smsService.ValidPhoneNumber(p_sPhoneNumber) Then
Dim result As Boolean = smsService.SendMessage(p_sPhoneNumber,
p_sMessage, p_sUsername, p_sPasskey)
If result = True Then
MsgBox("The message was sent",
MsgBoxStyle.Information, "SMS Messaging")

MsgBox("The message could not be sent",
MsgBoxStyle.Information, "SMS Messaging")

End If
End If
Catch ex As SoapException
MsgBox("An exception occured. " & ex.Detail.InnerText,
MsgBoxStyle.Critical, "SMS Messaging")
End Try

End Sub

more details

Please Check my answer if you help....
Thank You...

Author: pradeep             
Posted Date: February 25, 2010     Points: 5   

thank u lalit it is so helpful to me thanks alot..................

Author: Lalij Mer             
Posted Date: February 25, 2010     Points: 5   

If you help my answer then please accept my answer.

Please Check my answer if you help....
Thank You...


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend