Click here to Skip to main content
11,789,350 members (45,855 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 21: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)

  Print Answers RSS
0 OriginalGriff 929
1 Maciej Los 765
2 KrunalRohit 666
3 CPallini 606
4 Richard MacCutchan 420

Advertise | Privacy | Mobile
Web02 | 2.8.1509028.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