1. Install the component
From command prompt install smppx.dll with : "regsvr32
smppx.dll".
To install latest release, uninstall older one by "regsvr32 /u
smppx.dll"
To create object from smppx.dll simply createObject from string "smpp.Smppclient".
In VB just call
smppObj = CreateObject( "smpp.SmppClient" ) see sample
application for detail.
Here are the list funtion for sending
change your locale to your language first before use this function.
3. RECEIVE message formatfilename is absolute path, eg: "c:\mypic.bmp"
source_addr = digit
dest_addr = country_code + operator + number , ex: 62 812 8123465
valid_period = left blank for smsc defaultSend_xxx function for ActiveX SMPP return "OK" for success or "NO" otherwise.
SMPP Client as Delphi Component
1. Install the component
From Delphi IDE : File > Open ( smppc.dpk ) > Install
Your installation will create new button at Standard pallete named SmppClient.
![]() |
You should set mandatory property : - Host ( host of SMSC ) - Port - UserID - Password - SystemType Drop Button1, assign Button1OnClick to SmppClient1.Connect(); Drop Button2, assign Button2OnClick to SmppClient1.Send( '1234', 'Your Cell Phone Number', '', 'Hello world' ); You done (I think its less than 1 minute). And you have SENDSMS ONLY application only with 2 line of code. Lets continue to make RECEIVESMS also. Click SmppClient Event Double click RcxOnData assign it to memo1.lines.add( smppClient1.Rcx.rcxData );and TcxOnData event to memo1.lines.add( smppClient1.Tcx.tcxData ); Complete! right now you have full SEND & RECEIVE sms program. Try this with sending sms to your number that you get from mobile operator, the sms will be caught by your application. |
change your locale to your language first before use this function.
filename is absolute path, eg: "c:\mypic.bmp"
source_addr = digit
dest_addr = country_code + operator + number , ex: 62 812 8123465
valid_period = left blank for smsc defaultSend_xxx function for Delphi component return "<pdu_seq_number>" on success or "-1" otherwise.