ASP SMS Example
We provide you with implementation examples that are available to help you connect to our gateway through ASP, eliminating any learning curves. These programming examples connect via our HTTP API. For more examples and information, please visit our download section. For a free trial please contact us.
<% Option Explicit %>
<%
Dim username
username="username"
Dim password
password="password"
Dim msgtext
msgtext="Hello World"
Dim originator
originator="TestAccount"
Dim phone
phone="recipient"
Dim showDLR
showDLR=0
Dim smscharset
smscharset=0
Dim msgtype
msgtype=""
Dim smsprovider
smsprovider="solutions4mobiles.com"
Dim url
url="http://IPADDRESS/bulksms/bulksend.go"
Dim params
params = "username=" &username& "&password=" &password& "&charset="
&smscharset& "&msgtext=" &msgtext& "&originator=" &originator& "&phone="
&phone& "&provider=" &smsprovider& "&showDLR=" &showDLR& "&msgtype=" &msgtype
Dim sol4mob_xml
Set sol4mob_xml=Server.CreateObject("Microsoft.XMLHTTP")
sol4mob_xml.Open "POST", url, False
sol4mob_xml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
sol4mob_xml.Send params
Response.Write(sol4mob_xml.responseText)
%>
Newsletter
Sign up for our newsletter. Be informed about our services and learn how you can benefit from our offers.
|