我有一个HTML表格,我想在点击按钮时在outlook compose消息上打开它是否可能? [英] I have a HTML table I would like to open it on outlook compose message when a button is clicked is it possible?

查看:64
本文介绍了我有一个HTML表格,我想在点击按钮时在outlook compose消息上打开它是否可能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个html表我希望在单击按钮时在outlook compose消息上打开它是否有可能?



我尝试了什么:



我在javascript中试过mailto;在C#中的mailmessage

I have a html table I would like to open it on outlook compose message when a button is clicked Is it possible?

What I have tried:

I tried mailto in javascript; mailmessage in C#

推荐答案

你可以这样做,但它有点乱。



基本上,创建服务器上的.msg文件(使用互操作或第三方.msg api,如下所示: MSG .NET - Outlook MSG API [ ^ ]。注意这是不是认可:我没有使用过这个API!)



然后创建一个处理程序(ashx)来下载msg文件。它将在Outlook中打开,包含您添加的所有内容。你甚至可以用html格式添加正文。



希望有所帮助^ _ ^

Andy
You can do that, but it's a bit messy.

Basically, create the .msg file at the server (either use interop or a third party .msg api like this one: MSG .NET - Outlook MSG API[^]. NB. this is not an endorsement: I have not used this API!)

Then create a handler (ashx) to download the msg file. It will open up in Outlook with all the content you have added. You can even add the body in html format.

Hope that helps ^_^
Andy


这篇关于我有一个HTML表格,我想在点击按钮时在outlook compose消息上打开它是否可能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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