How to open an Outlook mail message with fields filled in using Visual Studio 2008 and C #

Posted on 2009-12-21
Last Modified: 2013-12-17

I am building a website in VS 2008 and using C # as the code behind language.

I need to open the users Outlook mail message, populate certain fields and fill the email body using a template.

I tried adding the Outlook references to website by googling it and ended up with the following following runtime error:
"Could not load file or assembly 'Microsoft.Office.Tools.Common' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded."            

Could someone explain to me the steps involved in opening MS Outlook up and filling up the fields.


Question by:fantasylan
    LVL 9

    Expert Comment

    by:Grant Spiteri

    Author Comment


    My need is the opposite. I need to open an outlook message and send it rather  than retrieve data from it.

    LVL 9

    Accepted Solution


    Author Comment

    I already found that article and the problem with it is that is probably intended for framework 2.0 . VS 2008 has Microsoft Outlook 11.0 Object Library instead of version 9.0, so that solution doesnt show up with intellisense.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now