The Esendex SDK contains a COM component that you can use within your Borland Delphi applications. The component contains an object model that enables you to send text messages, query the status of a messages, retrieve messages from your Inbox, get information about your account, and manage your Esendex contacts.
The SDK can be downloaded from our Downloads section.
Notes
Please see ActiveX Component for latest information about the ActiveX SMS API Component.
As with all COM components, you must register the Esendex component with the system.
REGSVR32 <UnzipLocation>EsendexSdk2.DLL
Where <UnzipLocation> is the path where you unzipped the Esendex SDK.
You will see a message that the component has been successfully registered.
Before you can use the component you will need to add the component to your project. Please select your version of Delphi for instructions on adding the component to your project.
You can then send a message as follows:
uses
SysUtils, ActiveX, EsendexLib_TLB;
var
SendService: ISendService2;
begin
CoInitialize(nil);
SendService:= CoSendService2.Create;
SendService.Initialise('EsendexUserName', 'EsendexPassword', 'EsendexAccount', '0');
SendService.SendMessage('441234567890', 'Hello', MESSAGE_TYPE_TEXT);
CoUninitialize;
end.
Documentation shipped with the downloadable SDK contains a full description of the component object model
The Delphi SDK can be downloaded from our Downloads section.
To use the component in Delphi 2005, do the following:
To use the component in Delphi versions before Delphi 2005, do the following: