How to use ASPSMS?

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:

  1. <%
  2. Set SMS = Server.CreateObject("ASPSMS.Booster")
  3. SMS.Userkey = "I3QHMYKEY6E"
  4. SMS.Password = "mypassword"
  5. SMS.Originator = "0041763251527"
  6. SMS.MessageData = "hello dad, call me in an hour! love, cathy"
  7. SMS.FlashingSMS = False
  8. SMS.AddRecipient "0044734255533"
  9. SMS.SendTextSMS
  10. lResult = SMS.ErrorCode
  11. SMS.DeleteAllRecipients
  12. Set SMS = Nothing
  13. %>


Explanation according to line:

  1. Open ASP tag
  2. Create an instance of SMS control
  3. Set Mailer control properties and collection items
  4. Set Mailer control properties and collection items
  5. Set Mailer control properties and collection items
  6. Set Mailer control properties and collection items
  7. Set Mailer control properties and collection items
  8. Set Mailer control properties and collection items
  9. 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: 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.


  • 388 Users Found This Useful

Was this answer helpful?

Related Articles

MySQL ODBC driver on Windows 2008 / 2012 server

We have installed MySQL 5.1 ODBC driver on Windows 2008 / 2012 shared hosting server. Get ASP...

How to send emails using ASP.Net (VB)?

This topic includes the sample code to send email from ASP.Net(VB) code :Sample Code :<%@...

How to use Dundas Mailer?

A. Sending an Email with the QuickSend Method <% Dim objMailer 'Mailer control Set...

How to use Dundas Chart?

How to create a Basic Pie Chart with Dundas Chart To use this control in a web site, you will...

How to disable Deprecated Function Notices in PHP.

PHP has deprecated some functions in latest version. If the same functions are still on your...