This is a discussion on Do we have facilities to send SMS thru asp? within the Other Web Programming Languages forums, part of the Web Development category; Do we have facilities to send SMS thru asp?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Do we have facilities to send SMS thru asp? |
|
#2
| |||
| |||
| Hi Buddy, Yes, you can send SMS thru your ASP Page. Code: <html>
<HEAD>
<BODY>
<p>Sending XML <br>
<%
'========================================================
'This code requires a user account with http://www.2sms.com
'Register now for a free no obligation trial of the service
'Simply call this method with the username and password you
'choose on the site and include a message and destination
'
'REQUIRES: Microsoft's XML Parser
'========================================================
'Insert your username and password (as used to log on to the website) here
UserName = "USN"
PassWord = "PWD"
Message = "Testing SMS"
Destination = "447788123123"
'sample of how to retrieves the message and number from a previous posting page
'Message = request.form("message")
'Destination = request.form("number")
'form up the first segment of XML
strfirstpart= "<?xml version=" & Chr(34) & "1.0" & Chr(34) & "?> " & _
"<Request xmlns:xsi=" & Chr(34) & "http://www.w3.org/2001/XMLSchema-instance" & Chr(34) & "
xsi:noNamespaceSchemaLocation=" & Chr(34) & "http://schema.2sms.com/1.0/0410_RequestSendMessage.xsd" & Chr(34) & " Version = " &
Chr(34) & "1.0" & Chr(34) & ">" & _
"<Identification>" & _
"<UserID><![CDATA[" & username & "]]></UserID>" & _
"<Password>" & password & "</Password>" & _
"</Identification>" & _
"<Service>" & _
"<ServiceName>SendMessage</ServiceName>" & _
"<ServiceDetail>"
'
'Form up the middle of the XML. To send multiple messages within one document insert
'multiple SingleMessage nodes (eg loop through the code below to add the strMidPart string
'several times). Your document may contain up to 500 SingleMessage nodes.
'
strMidPart = strMidPart +"<SingleMessage><Destination>" & Destination & "</Destination><Text><![CDATA[" & Message &
"]]></Text></SingleMessage>"
'form up the bottom of the xml document
strEndPart = "</ServiceDetail>" & _
"</Service>" & _
"</Request>"
'Concatonate all 3 strings to form complete xml document for sending
XMLstring = strFirstPart + StrMidPart + strEndPart
%>
outgoing XML
<textarea name="textfield" cols="50" rows="10"><%=XMLstring%> Hope Usefull.
__________________ The OXYGEN Delivers edgy, intelligent Technology to all... |
|
#3
| |||
| |||
| SMS gateway is independent.we can integrate in most of the web programming (ASP,ASP.NET,PHP,etc..)supports SMS gateway... SMS gateway is independent service to provide messaging |
|
#4
| |||
| |||
| You can send sms thru asp with the help of a code hear a site that will help you for it. you can get the best example of this code on webdesigningcompany.net |
|
#5
| |||
| |||
| Hi You can send Sms through asp because their are a lot of websites are using this process for Sms purposes. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| every one send from email forge | bluesky | Networking & Internet Connectivity | 2 | 08-05-2009 07:01 PM |
| Send SMS using web service | shaalini | ASP and ASP.NET Programming | 1 | 04-22-2008 02:21 AM |
| how to send mail from php? | sureshbabu | PHP Programming | 4 | 04-03-2008 01:21 AM |
| How to Send mail using dot net ...? | a.deeban | ASP and ASP.NET Programming | 9 | 01-17-2008 08:20 PM |
| send the sms using SMS/MMS Gateway in php | varghese | PHP Programming | 1 | 09-18-2007 07:32 AM |
Our Partners |