Download ActiveXperts SMS and MMS Toolkit 5.1  (6799 KB - .exe file)
Download Manual  (623 KB - .htm file)
Using The SMS and MMS Toolkit with Visual C# .NET
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
This document describes how the SMS and MMS Toolkit can be integrated into into Visual C# .NET projects.
Step 1: Download and install the SMS and MMS Toolkit
Download the 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 a new Visual C# .NET Project
Launch Microsoft Visual Studio (for instance 'Microsoft Visual Studio 2005') from the Start menu.
Choose 'New' from the 'File' menu and click on 'Project'. In the 'New Project' dialog, select a Visual Studio template (for instance: 'Console Application').
Select a name for the application (for instance: 'DemoApp') and a name for the solution (for instance: 'DemoSolution'). Also, select the directory where you want to store the project (for instance: 'C:\MyProjects):

(Click on the picture to enlarge)
Step 3: Refer to the SMS and MMS Toolkit Library
Now that a new project has been created, you must add a reference to the SMS and MMS Toolkit in the project to be able to use the the SMS and MMS Toolkit objects.
To do so, choose 'Add Reference...' from the 'Project' menu.
In the 'Add Reference' dialog that pops up, select the 'COM' tab and select the ActiveXperts SMS and MMS Toolkit Type Library' as shown in the following picture:

(Click on the picture to enlarge)
Click 'OK' to close the 'Add Reference' dialog.
Step 4: Declare and create the SMS and MMS Toolkit objects
On top of your code, type the following line to use the SMS and MMS Toolkit namespace:
using AXmsCtrl;
In your Main function, declare and create the following object for SMPP:
SmsProtocolSmpp objSmsProtocolSmpp = new SmsProtocolSmpp();
To make use of SMS and MMS Toolkit's SmsMessage object, declare the 'SmsMessage' object:
SmsMessage objSmsMessage = new SmsMessage();
To make use of SMS and MMS Toolkit's SmsConstants object, declare the 'SmsConstants' object:
SmsConstants objSmsConstants = new SmsConstants();
Step 5: Send and/or receive SMS messages
You can now send and/or receive SMS messages.
The following code shows how to send an SMS message:
using System;
using AXmsCtrl;
namespace DemoApp
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
SmsProtocolSmpp objSmppProtocol = new SmsProtocolSmpp();
SmsMessage objSmsMessage = new SmsMessage();
SmsConstants objSmsConstants = new SmsConstants();
object obj;
// Provider Settings
objSmppProtocol.Server = "smpp.activexperts-labs.com";
objSmppProtocol.ServerPort = 2775;
objSmppProtocol.SystemID = "AX008";
objSmppProtocol.SystemPassword = "812056";
// Message Settings
objSmsMessage.Recipient = "+31647134225";
objSmsMessage.Data = "Hello World !";
objSmsMessage.Format = objSmsConstants.asMESSAGEFORMAT_TEXT;
// Set logfile
objSmppProtocol.LogFile = "C:\\SMSLog.txt";
// Connect to SMPP provider
objSmppProtocol.Connect ();
if ( objSmppProtocol.LastError == 0 )
{
Console.WriteLine ( "" );
Console.WriteLine ( "Connected to SMPP provider successfully" );
Console.WriteLine ( "" );
}
else
{
Console.WriteLine ( "" );
Console.WriteLine ( "Connecting failed, Error code = {0} ( {1} )", objSmppProtocol.LastError.ToString() , objSmppProtocol.GetErrorDescription ( objSmppProtocol.LastError ) );
Console.WriteLine ( "" );
return;
}
// Send the message !
obj = objSmsMessage;
objSmppProtocol.Send( ref obj );
if ( objSmppProtocol.LastError == 0 )
{
Console.WriteLine ( "" );
Console.WriteLine ( "Message send successfully" );
Console.WriteLine ( "" );
}
else
{
Console.WriteLine ( "" );
Console.WriteLine ( "Sending message failed, Error code = {0} ( {1} )", objSmppProtocol.LastError.ToString() , objSmppProtocol.GetErrorDescription ( objSmppProtocol.LastError ) );
Console.WriteLine ( "" );
}
objSmppProtocol.Disconnect ();
}
}
}
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.
NOTE: Demo Projects are created with Microsoft Visual Studio 2003
The SMS and MMS Toolkit project ships with a set of Microsoft Visual Studio .NET samples, including samples for Microsoft Visual C# .NET.
The projects are created with Microsoft Visual Studio 2003.
Users with a later version of Microsoft Visual Studio can open such a project. The Visual Studio Conversion Wizard will guide you through the process of converting the project to the version used.
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.
|