Thursday, November 21, 2024
Innovative SMS Gateway & Messaging solutions

Examples

Here some ASP VB-Script examples, intended to be used on a IIS (Internet Information Server) from Microsoft or any other application that supports ActiveX/COM-Objects.
You may change the code according to the documentation.

Simple Text SMS | Bulk SMS | Flashing SMS | Alphanumeric Originator | SMS with delivery notification | SMS with error validation | WAP-Push |

Delivery Notifications

Optional you may set a transaction number and transmit it together with the SMS to our aspsms servers. This enables you to track the delivery of each message. Just add a unique transaction number to the method SMS.AddRecipient separated with a comma.

<html>
<body>

<%

  '------------------------------------------------------------
  ' aspsms.com(ponent) (c) 2001 by VADIAN.NET AG
  '------------------------------------------------------------
  ' with delivery notification
  '------------------------------------------------

  Set SMS = Server.CreateObject("ASPSMS.Booster")
  SMS.Userkey = "I3QHMYKEY6E"
  SMS.Password = "mypassword"
  SMS.Originator = "0041763255533"
  SMS.MessageData = "hello dad, call me in an hour! love, cathy"
  SMS.FlashingSMS = False
  SMS.URLDeliveryNotification = "http://mysite.com/sms/delivered.asp?ID="
  SMS.URLBufferedMessageNotification = "http://mysite.com/sms/buffered.asp?ID="
  SMS.URLNonDeliveryNotification = "http://mysite.com/sms/notdelivered.asp?ID="
  SMS.AddRecipient "0044734255533", "0001"
  SMS.SendTextSMS
  lResult = SMS.ErrorCode
  SMS.DeleteAllRecipients
  Set SMS = Nothing

%>

done.

</body>
</html>

Additional comments:

In this example we will execute an HTTP GET Request to http://mysite.com/sms/delivered.asp?ID=0001 if the SMS has been delivered succesfully to the recipients mobile phone.

If the SMS has been buffered first, we will first execute an HTTP GET Request to your webserver like http://mysite.com/sms/buffered.asp?ID=0001

If the SMS couldn't be delivered, we will execute an HTTP GET Request to your webserver like http://mysite.com/sms/notdelivered.asp?ID=0001

Naming of the URLs and Querystring parameters:

Your completely free how you want to name the URLs and the querystring parameters. We will just add the transaction number behind the URL that you specified within the methods.

More ASP VB-Script examples:

Simple Text SMS | Bulk SMS | Flashing SMS | Alphanumeric Originator | SMS with delivery notification | SMS with error validation | WAP-Push |
New User Registration

Click here for the ASPSMS new user registration.

Have you already registered? Log in with your user e-mail address and password.


Forgot Login Password?

Available SMS tools and interfaces for ASPSMS