在Outlook电子邮件正文中添加控件 [英] Add control in Outlook email body

查看:189
本文介绍了在Outlook电子邮件正文中添加控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我需要使用.net 3.5框架创建一个Outlook加载项.要求包括在电子邮件的正文部分添加一个下拉控件.此下拉列表将从数据源绑定.

我的问题是-是否可以使用.net在电子邮件的正文部分添加控件?如果是,那怎么办?

请帮助
提前谢谢.

Raks

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

推荐答案

控件本身不是问题-在整个电子邮件或电子邮件部分中使用MIME类型"text/html"(在这种情况下, Content-Type: multipart/alternative),然后将控件添加到HTML文本.但是在这种情况下不能使用数据绑定,因为HTML代码的来源不是HTTP服务器,您可以在其中将服务器端技术与数据绑定一起使用-没有服务器端.

我只能看到一种可能性:在服务器端开发具有数据绑定的Web应用程序.发送具有"text/html"内容类型的电子邮件,并在HTML电子邮件的正文中插入iframe元素. iframe的属性src应该指向您身边动态更新的网页.

我不建议完全解决此任务,因为这似乎是对简单电子邮件概念的滥用. 电子邮件接收者期望静态内容.仅在这种情况下,诸如电子邮件归档,将其数据复制到其他数据存储库之类的许多操作才有意义.

—SA
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


这篇关于在Outlook电子邮件正文中添加控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆