Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900