Click here to Skip to main content
Rate this: bad
good
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.
 
Raks
Posted 14-Jul-11 22:29pm

1 solution

Rate this: bad
good
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.
 
—SA
  Permalink  

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

  Print Answers RSS
0 BillWoodruff 330
1 Mathew Soji 309
2 Maciej Los 295
3 DamithSL 225
4 Afzaal Ahmad Zeeshan 217
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,025


Advertise | Privacy | Mobile
Web02 | 2.8.1411019.1 | Last Updated 15 Jul 2011
Copyright © CodeProject, 1999-2014
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