Skype Developer Zone logo
  • Login
  • Home
  • Tools & SDKs
  • Docs & Samples
  • Support
  • Certification
  • Community
  • Shop
  • Blog
Peter Kalmström

Automating Skype SMS

By My status Peter Kalmström on August 31, 2006 in .

Just got a question from Alok in India. He wanted to build a system for sending sms messages confirming parcels sent to his customers. Thought this would be something quite useful for others also.

There are several ways of doing this.

The simplest way is to do it semi-manually using the Skype URI syntax. A link such as this works:

skype:+46739206106?sms

That kind of link works for anyone with Skype (and Skype Credits). Nothing needs to be installed, no authentication etc. However, that actually doesn't send the message, it just opens up a sms window with the phone number filled in. Can be useful but if you want to go a few steps further you need to automate Skype using the Skype API. First you need to reference the Skype COM API in C# as seen here:

Next step is to add a few controls to the form:

Then you would write some code like the following (in C#):

 

...
public partial class Form1 : Form
{
  private SKYPE4COMLib.SkypeClass objSkype = new SKYPE4COMLib.SkypeClass(); 
  public Form1()
     {
        InitializeComponent();
      }

    private void button1_Click(object sender, EventArgs e)
      {
      objSkype.SendSms(txtPhoneNumber.Text, txtSMSText.Text , "+46739206106");
      }
}

The above code sends the message in the txtSMSText textbox. No dialogs - the message just gets sent. From code you also get a verification that the message was actually sent successfully. Note that the third parameter, the ReplyToNumber only works for numbers that are already validated. The validation is done by going into Tools-Options-SMS in Skype:
 
Of course, the above simply gives you a replacement for the Skype Send SMS dialog but of course you could automate sending sms messages from your order entry system, crm system etc ...

Hope that gives you some ideas for how you can use sms in your development

Bookmark and Share

View blog reactions

Comments

very cool. we have just added this to our next update of mcePhone for Skype: http://thegreenbutton.com/forums/thread/129974.aspx .
Now you can send SMS from your TV 8-)

cbuenger | Thursday, Aug 31

Thanks Christophe,
Very nice - have to get myself a MCE soon! Yours might just be the killer app that decides for me!

Best of luck to you!
Peter

peter.kalmstrom.nu | Thursday, Aug 31

Thanks Peter, for creating this blog. This will help me a lot to.

alok-compaq | Thursday, Aug 31

Peter,

From yesterday updates I like to bring some issues I found while testing the SMS.

In order to authenticate your mobile it works file with that and it sends a SMS to your mobile phone with PIN Code. Then using that code I am able to authenticate too.

But when you try to sent SMS out to other mobile phone it did not delivered. I tried to sent it to US number from my India connection.

Same thing happened when my friend from US tried.
Thanks
Alok

alok-compaq | Thursday, Aug 31

Does skype support 2 way sms. ie. I would like to send an sms from my application and the application should also be able to recieve the response sms.
Is that possible?

smohank | Monday, Oct 30

Hi,
I have copied the code, but when I includethe 'Reply To' number I get the error "SMS: SET SMS: failed".
It works fine without the 'Reply To' number (ie a blank string "")
Any ideas?

pault7 | Wednesday, Jan 31

Hi again,
My bad, the 'Reply To' number needs to be verified before it can be used.
;-)

pault7 | Wednesday, Jan 31

I would love to have the ability to forward some emails I recieve to my phone via SMS.

I could create a rule in OSX mail, but does anyone suggest the most effeciant way to interface with skype? I am guessing I could not do it with applescript.

It would be neat if the OSX skype had SMS as an automater action

tristanbrotherton | Wednesday, Aug 22

the SKPYE SMS UIR works fne but I need a uri with the message data, so that i can send the complete sms from a application to skype. May be like this:
skype:+46739206106?sms&text="this is the demo text".

Does this work currently ?

alexander.dau | Wednesday, Aug 29

Comment on this post

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Please read our comment guidelines before posting your comment.

TrackBack

Listed below are links to weblogs that reference Automating Skype SMS:

» Skype SMS from Copy | Paste | Typing Machine
Skype 不只可以打電話,也可以送 SMS 訊息,但是這不是新聞了 XD。最近才去找用程式控制 skype 送出訊息的方法,找到了 “Automating Skype SMS” 這個網頁,方法還蠻簡單的,透過 skype 提供... [Read More]

Tracked on February 8, 2007 1:41 PM

Back to index

Subscribe to this blog
What? Tell me more…

using RSS Subscribe
via Bloglines Subscribe in Bloglines
using Newsgator Subscribe in NewsGator Online
with MyYahoo
with Google Add to Google
with My AOL Add to My AOL
with Anothr.com Subscribe by Anothr
with netvibes Add to Netvibes
with email Get email updates
Skype Developer Newsletter

Sign up now for all the latest news, tips and tricks on using Skype Public API.

Skype Blogs
  • Share Skype Blog
  • Heartbeat
  • Developer Zone
  • Business
  • Skype Gear
  • Security
  • Garage
  • Mac
  • Linux
  • Eesti keeles
  • 日本語
  • Česky
  • Deutsch
  • Français
  • Italiano
  • Brasil
  • United Kingdom
  • Polski
  • United States
  • 한국어

Recent posts

  • Developer Zone and Jira down for maintenance
  • The future of Skype Extras
  • Skype name recognition in Skype 4.1
  • Summer break in Extras update from 20th July to 9th August
  • Version 1.0.32 of Skype4COM is now available for download
  • Skype for Windows 4.1 Beta is Live
  • CTSS - Chat Translator and Speaker for Skype
  • Router Lab
  • A pause in Extras update until 23rd April
  • Jason Fischl joins Skype as Director of Developer Relations

Archives

  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
About us · Partners · Jobs · Prices · Security
Privacy policy · Legal · © 2009 Skype Limited