How to Import Contacts From MSN Messenger Using a Hotmail Email Address
This guide will show you how to take a users hotmail email address and download or import their contacts programmatically using ASP.NET.
This kind of feature is useful if you are building a Web 2.0 website, a social networking website or anything like that which can benefit from users being able to easily import their contacts from MSN Messenger into your mystic messenger email guide website. You can see this type of functionality on many websites today including MySpace, Facebook and Groupbox. I mentioned Groupbox because that is of course my website. Groupbox is a website for online groups and the feature you are about to learn is one that I implemented to make it easy for users to import their MSN messenger contacts.
After reading this guide you will be able to: Import a users contacts from MSN Messenger using their MSN Hotmail email address and MSN Password.
What you will need: I’ll need to assume you know a bit about programming on the web, the .NET framework, and in this case some VB.NET.
Much of the work for importing contacts from MSN Messenger has been done for you by a group called XIH. They have a class library named the DotMSN Messaging library. We will need this class library so I’ve included a link to my blog where you can download it at the bottom of the article.
The class library does many things but we are just going to use it to retrieve a users contact email addresses.
Importing contacts from MSN MessengerWe are going to achieve this by creating a function that will return an ArrayList of email address’ that you can then use in your website.Here is the function I’m using that imports the contacts and returns them as an ArrayList: