Here is the ASP VB-Script example, intended to be used on an IIS (Internet Information Server) from Microsoft or any other application that supports ActiveX/COM-Objects.
You may change the code according to the documentation.
Sample code:
- <%
- Set SMS = Server.CreateObject("ASPSMS.Booster")
- SMS.Userkey = "I3QHMYKEY6E"
- SMS.Password = "mypassword"
- SMS.Originator = "0041763251527"
- SMS.MessageData = "hello dad, call me in an hour! love, cathy"
- SMS.FlashingSMS = False
- SMS.AddRecipient "0044734255533"
- SMS.SendTextSMS
- lResult = SMS.ErrorCode
- SMS.DeleteAllRecipients
- Set SMS = Nothing
- %>
Explanation according to line:
- Open ASP tag
- Create an instance of SMS control
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Send SMS
- Capture SMS error if there is
- Remove all the recipient
- Release resources
- Close ASP tag
For further information, please refer to: http://www.aspsms.com/documentation/
Note: This may please be noted that this component can be uniformly used by all the users of Windows Shared Hosting.