Click here to Skip to main content
11,481,404 members (66,011 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: .NET Outlook Body email
Hi All,
I need to create an outlook add-in using .net 3.5 framework. Requirement includes adding a dropdown control in email's body part. This drop down will be bound from a datasource.

My question is - Is it possible to add a control in email's body part using .net? If yes then how?

Kindly help
Thanks in advance.

Posted 14-Jul-11 22:29pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The control itself is not a problem — use MIME type "text/html" for the whole e-mail or e-mail part (in this case, Content-Type: multipart/alternative) and add a control to HTML text. But data binding cannot be used in this case, as the source of HTML code is not the HTTP server where you could use server-side technology with data binding — there is not server-side.

I can see only one possibility: develop Web application with data binding on server side. Send e-mail with "text/html" content type and insert iframe element in the body of HTML e-mail. The attribute src of iframe should point to the dynamically updated Web page on your side.

I would not recommend solving this task at all as it would seem as the abuse of that simple e-mail concept. Receivers of e-mails expect static content. Only in this case many operations like archiving of e-mails, copying its data to some other data repositories make sense.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 15 Jul 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100