How to use ASPSMS? Print

  • 645


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.


Sample Codes:


01. <%
02. Set
SMS = color=rosybrown>Server.CreateObject("ASPSMS.Booster")
03.
SMS.Userkey = "I3QHMYKEY6E"
04. SMS.Password = "mypassword"
05.
SMS.Originator = "0041763251527"
06. SMS.MessageData = "hello dad, call me
in an hour! love, cathy"
07. SMS.FlashingSMS = False
08.
SMS.AddRecipient "0044734255533"
09. SMS.SendTextSMS
10. lResult =
SMS.ErrorCode
11. SMS.DeleteAllRecipients
12. color=red>Set SMS = Nothing
13. color=royalblue>%>


Explanation According to Line

01. Open ASP tag
02.Create instance ofSMS
control
03. Set Mailer control properties and collection items

04. Set Mailer control properties and collection items
05. Set Mailer
control properties and collection items
06. Set Mailer control properties
and collection items
07. Set Mailer control properties and collection items

08. Set Mailer control properties and collection items
09. Send
SMS
10. Capture SMS error if there is
11. Remove all the recipient
12.
Release resources
13. Close ASP
tag


For further information, please refer to :


Was this answer helpful?

« Back