How to change or specify time to life period of the SMS?
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
Thanks! Try to do. :)