if send('sms://+' + SendPhone,'' + TextSMS) <> 1 then SMSError; while is_sending do Delay(100); if not successfull then SMSError;