smsStartSend


function smsStartSend(destination: string; message:string): boolean;

Starts sending an SMS message. Returns true if SMS message has been sent to the SMS subsystem and if the subsystem is not sending another message. Returns false if the message was not sent to the SMS subsystem. 'destination' address must have the form: sms://<phone-number>

SMS sending from J2ME is not supported on all devices. MIDletPascal tries to send SMS messages using Wireless Messaging API and Siemens API.

The following example illustrates simple use of SMS functions:

  begin
  if not smsStartSend('sms://+5550000', 'Hello!') then halt;
  
    while smsIsSending do // wait for the message to be sent
      delay(100);

      if not smsWasSuccessfull then halt; // check if the message was sent successfully
    
  end.

See also: smsIsSending, smsWasSuccessfull