Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wireless Text Messaging 1

Status
Not open for further replies.

onetomany

Programmer
May 15, 2000
55
US
I am looking into writing an application thta will send out text messages to the pagers of managers of a call center when call volumes reach a certain level. I am not sure what is needed to send text messages. Can this be done using CDONTS or will I need to purchase specialsoftware or write a component.
 
Using a Web Service to Send SMS Text Messages in ASP.NET

By: Darren Cosker

The code snippet supplied uses a web service that can send an SMS text message to 90% of all mobile phones.

Before using the below code you must link the web service . Information available on

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

Try
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")
Else
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

Thanks Darren

FrOg 8)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top