• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
March 28, 2024, 08:14:37 pm

News:

SMF - Just Installed!


Time to life period of the SMS

Started by Halter, May 10, 2012, 02:46:52 am

Previous topic - Next topic

Halter

How to change or specify time to life period of the SMS?

Roman Novgorodov

Hello

You can use PDU format for send SMS and set necessary properties ():
Please try following code:

procedure TForm1.SendPduSms;
var pdu:TnrPduSms;
begin
  pdu := TnrPduSms.Create(false);
  pdu.Text := Memo1.Text;
  pdu.Phone := Edit1.Text;
  pdu.Confirm := chConfirm.Checked;
  pdu.Alert := chAlert.Checked;
  pdu.TTLType := ttlAbs;                 // time to live type
  pdu.TTLValue := Now + 1;           // time to live +24 hours
  nrGsm1.SmsSend(pdu);
  pdu.Free;
end;


Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

Halter