Forum.Deepsoftware.Com

DeepSoftware Products => nrComm Lib VCL (32bit / 64bit) => nrComm Lib => GSM/SMS => Topic started by: Halter on May 10, 2012, 02:46:52 am

Title: Time to life period of the SMS
Post by: Halter on May 10, 2012, 02:46:52 am
How to change or specify time to life period of the SMS?
Title: Re: Time to life period of the SMS
Post by: Roman Novgorodov on May 10, 2012, 02:59:30 am
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
Title: Re: Time to life period of the SMS
Post by: Halter on May 11, 2012, 05:33:50 pm
Thanks! Try to do. :)