Link to home
Start Free TrialLog in
Avatar of fantasylan
fantasylan

asked on

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

Hi,

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.

Thanks

NS
Avatar of Grant Spiteri
Grant Spiteri
Flag of Australia image

Avatar of fantasylan
fantasylan

ASKER

gspiteri,

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

Regards
ASKER CERTIFIED SOLUTION
Avatar of Grant Spiteri
Grant Spiteri
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.