Saturday, August 24, 2019
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 |

SMS with error validation

If you want to be sure, that the SMS has been sent succesfully to the ASPSMS gateway, just add some lines of additional code. Here is the complete list of possible error codes.

<html>
<body>

<%

  '------------------------------------------------------------
  ' aspsms.com(ponent) (c) 2001 by VADIAN.NET AG
  '------------------------------------------------------------
  ' simple sms example with error validation
  '------------------------------------------------

  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.AddRecipient "0044734255533"
  SMS.SendTextSMS
  SMS.DeleteAllRecipients

  if SMS.ErrorCode<>1 then
   response.write("An error occured:<br>")
   response.write("SMS.Errorcode = " & SMS.ErrorCode & "<br>")
   response.write("SMS.ErrorDescription = " & SMS.ErrorDescription)
  else
   response.write("SMS sent to gateway.")
  end if

  Set SMS = Nothing

%>

</body>
</html>
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