Download ActiveXperts SMS and MMS Toolkit 5.1  (6826 KB - .exe file)
Download Manual  (623 KB - .htm file)
Using SMS and MMS Toolkit with ColdFusion (MM1 Connection)
The SMS and MMS Toolkit is a software development kit (SDK) to enhance an application or script with SMS, MMS and Pager functionality.
An SMS messages can be sent using a GSM/GPRS modem, an SMPP provider, an HTTP compliant SMS provider or using a standard dialup or fixed-line SMS modem.
An MMS messages can be sent via a GSM/GPRS modem (MM1), an SMTP server (MM4) or an XML/SOAP compliant provider (MM7).
SMS features:
- Send and receive numeric- and alphanumeric text SMS messages
- Verify delivery of outgoing SMS messages
- Support for multimedia SMS messages, including ringtones, pictures and logo's
- Support for WAP Push, WAP Bookmarks, vCards, voicemail/e-mail/fax/MMS indications
- Support for Unicode, to support foreign languages like Chinese, Turkisch, etc.
- Support for multi-part messages, to allow messages longer than 160 characters
- Support for GSM modems, GSM phones, SMS/HTTP providers, SMPP (Short Message Peer to Peer) providers, TAP/XIO and UCP dial-in SMSC providers
- Support Multi-threading environments. The component is thread-safe, which means it can be used in a multi-threaded environment
- Samples included for various development platforms: MS Visual Basic, MS Visual Basic .NET, MS Visual C++, MS Visual Studio C# .NET, ASP, ASP .NET, Borland Delphi, Borland C++ Builder, ColdFusion and more
MMS features:
- Support for many multimedia formats incl.: JPG, GIF, PNG, BMP, WBMP, TIF, WAV, MP3, MIDI, AC3, GP3, AVI, MPG, MP4, VCARD, VCALENDAR, JAR and more
- Support for MM1 (MMS over WAP), MM4 (MMS over SMTP) and MM7 (MMS over HTML/SOAP)
Pager features:
- Send alpha-numeric Pager messages through SNPP
Step 1: Download and install the SMS and MMS Toolkit
Download the SMS and MMS Toolkit from the ActiveXperts Download Site and start the installation.
The installation guides you through the installation process.
Step 2: Create the SMS objects in ColdFusion
You must use the following code to declare the COM object(s) in ColdFusion: Use the following ColdFusion code to declare and create the MM1 objects:
<cfobject class="ActiveXperts.MmsProtocolMm1" type="com" name="objMm1Protocol" Action="Create">
Insert the following line to declare and create the MmsMessage object:
<cfobject class="ActiveXperts.MmsMessage" type="com" name="objMessage" Action="Create">
Insert the following line to declare and create the MmsSlide object:
<cfobject class="ActiveXperts.MmsSlide" type="com" name="objSlide" Action="Create">
Insert the following line to declare and create the MmsConstants object:
<cfobject class="ActiveXperts.MmsConstants" type="com" name="objConstants" Action="Create">
Step 2: Create a form
To send a MMS message using MM1, the MMS and SMS Toolkit requires the following information:
- Device name
- APN
- APN Account
- APN Password
- Wap Gateway
- MMSC Address
- Recipient
- Subject
- Message
- Attachment
- Result
Create a ColdFusion form to collect this information. The form method needs to be "Post"!
The toolkit allows you to preview all connected modems. The following code returns an array of connected devices:
<!--- Get a list of connected devices //--->
<cffunction name="getDevices">
<cfset intDevices = objMm1Protocol.GetDeviceCount() -1>
<cfset arrDevices = ArrayNew(1)>
<cfloop from="0" to=#intDevices# index="i">
<cfset ArrayAppend(arrDevices, objMm1Protocol.GetDevice(#i#))>
</cfloop>
<cfreturn arrDevices>
</cffunction>
Use the following code to list the array in a combobox.
<cfselect name="CTL_DEVICES" style="width: 250px">
<cfset arrDevices = getDevices() >
<cfset intLength = ArrayLen(arrDevices) >
<cfloop from="1" to=#intLength# index="i" step="1">
<cfset strDevice=arrDevices[#i#]>
<option value="#strDevice#">#strDevice#</option>
</cfloop>
</cfselect>
Step 4: Send MMS messages
If the instances described in step 2 can successfully be created, you can now send MMS messages using a connected GSM GPRS/EDGE/UMTS modem.
The following ColdFusion code is the core of a website where the user can fill a file located on the webserver, and send it as a MMS message to his mobile phone or email address.
The demo can be run from a client connecting to the ColdFusion webserver. The client does not need any additional hardware. The modem has to be connected to the webserver.
The following ColdFusion code shows how to send a MMS:
<!--- set some default values --->
<cfparam name="FORM.CTL_MESSAGE" default="[MESSAGE]">
<cfparam name="FORM.CTL_ATTACHMENT" default="C:\Windows\Clock.avi">
<cfparam name="FORM.CTL_RECIPIENT" default="">
<cfparam name="FORM.CTL_SENDER" default="">
<cfparam name="FORM.CTL_SUBJECT" default="">
<cfparam name="FORM.CTL_DEVICES" default="">
<cfparam name="FORM.CTL_SERVER" default="[HOST]">
<cfparam name="FORM.CTL_APN" default="[APN]">
<cfparam name="FORM.CTL_APNACCOUNT" default="">
<cfparam name="FORM.CTL_APNPASSWORD" default="">
<cfparam name="FORM.CTL_GATEWAY" default="[GATEWAY]">
<cfparam name="FORM.CTL_PINCODE" default="">
<cfparam name="FORM.CTL_URLTEXT" default="">
<cfset numLastError = "" >
<cfset strLastError = "" >
<cfset strLastResponse = "" >
<cfif( isDefined("FORM.CTL_SEND") ) >
<cfset objSlide.Clear() >
<cfset objSlide.AddText( FORM.CTL_MESSAGE ) >
<cfset objSlide.AddAttachment( FORM.CTL_ATTACHMENT, 0 ) >
<cfset objMessage.Clear()>
<cfset objMessage.AddRecipient( FORM.CTL_RECIPIENT, objConstants.asMMS_RECIPIENT_TO ) >
<cfset objMessage.From = FORM.CTL_SENDER >
<cfset objMessage.Subject = FORM.CTL_SUBJECT >
<cfset objMessage.AddSlide(#objSlide#) >
<cfset objMm1Protocol.Clear()>
<cfset objMm1Protocol.Device = FORM.CTL_DEVICES >
<cfset objMm1Protocol.ProviderMMSC = FORM.CTL_SERVER >
<cfset objMm1Protocol.ProviderAPN = FORM.CTL_APN >
<cfset objMm1Protocol.ProviderAPNAccount = FORM.CTL_APNACCOUNT >
<cfset objMm1Protocol.ProviderAPNPassword = FORM.CTL_APNPASSWORD >
<cfset objMm1Protocol.ProviderWAPGateway = FORM.CTL_GATEWAY >
<cfif( FORM.CTL_PINCODE neq "" ) >
<cfset objMm1Protocol.EnterPin( FORM.CTL_PINCODE ) >
</cfif>
<cfif( objMm1Protocol.LastError eq 0 )>
<cfset objMm1Protocol.Connect() >
</cfif>
<cfif( objMm1Protocol.LastError eq 0 ) >
<cfset objMm1Protocol.Send( objMessage ) >
</cfif>
<cfset numLastError = objMm1Protocol.LastError >
<cfset strLastError = objMm1Protocol.GetErrorDescription( #numLastError# ) >
<cfset strLastResponse = objMm1Protocol.ProviderResponse >
<cfset objMm1Protocol.Disconnect() >
</cfif>
There are many working samples included with the product.
You can also find them on the ActiveXperts FTP site: ftp.activexperts-labs.com/samples/xmstoolkit.
The ActiveXperts SMS and MMS Toolkit is a SMS development component (SDK). This control can be used by any Windows development platform,
including Visual Basic .NET, Visual CSharp .NET,
ASP .NET (VB,CS),
ASP,
Visual Basic,
Visual Basic for Applications (VBA),
Visual Studio/Visual C++,
Borland Delphi and
C++ Builder,
PHP,
ColdFusion,
HTML,
VBScript and any other ActiveX/COM compliant platform. The SMS and MMS Toolkit is an ActiveXperts Software B.V. Product.
|