title: Send SMS via Skyp API
body: <p>I have a c# app and I wish to send an sms to a specfic User whenever I have an update for that User.</p>
  
  <p>I intend to have many different Users.</p>
  
  <p>I heard that it is possible to send SMS via Skype.</p>
  
  <p>I download some sample code but when I run it I got an error saying 'connection refused'.</p>
  
  <p>I also then came across a blog stating that using Skype this way has potential errors like the SMS not getting through or taking days to get through.</p>
  
  <p>I heard also that Skype are not that good with support in this area.</p>
  
  <p>But, I cannot get past this error to find that all out.</p>
  
  <p>If I send the sms directly using Skype's GUI/App then it comes through no problem.</p>
  
  <p>So, is my code correct?
  Should I use Skype for this at all?
  Has anyone had a similar thing to do and has a better idea?</p>
  
  <p>Thanks.</p>
  
  <p>CODE:</p>
  
  <pre><code>    private void button1_Click(object sender, EventArgs e)
      {
          var sendNumber =  "+44-79-7059-0893";
          var msgBody = "test message";
  
          SendSMSMessage(sendNumber, msgBody);
      }
  
      void SendSMSMessage(string number, string body)
      {
          try
          {
              var skype = new SKYPE4COMLib.Skype();
              skype.Timeout = 120 * 1000; 
  
              var smsType = SKYPE4COMLib.TSmsMessageType.smsMessageTypeOutgoing;  //error occurs here
              var message = skype.CreateSms(smsType, number);
              message.Body = body;
              message.Send();
          }
          catch (Exception ex)
          {
  
          }
      }
  </code></pre>