与第三方Web应用程序的Outlook Office Office加载项集成 - MailTo链接的替代方案支持附件和HTML身体

发布于 2025-01-24 17:10:36 字数 421 浏览 3 评论 0原文

从我们在公司网络中运行的Web应用程序中,我正在寻找一种替代方法的“ mailto”方法(因为“ mailto”仅支持身体部分的纯文本,并且没有附件支持)来打开新消息(电子邮件) Outlook中的弹出窗口(公司使用Outlook)。我正在尝试通过JavaScript实施此功能。

搜索后,我认为我有2个可用的选项:

  1. 通过打开发送邮件弹出弹出的邮件发送邮件发送操作,包括附件和漂亮的HTML身体模板,
  2. 试图将我们的Web应用程序与Outlook Office Addin集成在一起

。 Web应用程序用于采购部门,其前景使用量很高。

如果选择了选项1,我认为需要提出以前的邮件收件人建议并发送邮件历史页面。

我不确定是否可以实现该选项2,也可以由Outlook提供。

任何建议都将不胜感激。非常感谢。

From our web application running in company network, I'm looking for an alternative way of "mailto" approach (since "mailto" supports plain text only for the body section and has no attachment support) for opening up a new message (email) popup in Outlook (company uses Outlook). I'm trying to implement this by JavaScript.

After some search, I think I have 2 options available:

  1. Handling mail sending operation via our web application by opening a send mail popup, including attachment and nice looking html body template,
  2. Trying to integrate our web application with an Outlook office add-in

This web application is for purchasing department and Outlook usage of them is high.

If option 1 has been chosen, I think there will be a need to present previous mail recipient suggestions and sent mail history page.

I'm not exactly sure that option 2 can be implemented, or provided by Outlook.

Any suggestions will be highly appreciated. Many thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忆梦 2025-01-31 17:10:36

恕我直言,从IE以外的其他浏览器中,在Outlook中显示新消息的唯一可靠方法是动态创建带有HTML主体和填充的附件的EML(MIME)文件。只需确保添加“ x-nosent:1” mime标头以将消息显示为草稿,并避免从/sender sender mime标头填充

IMHO the only reliable way to show a new message in Outlook from a browser other than IE is to dynamically create an EML (MIME) file with HTML body and attachments populated. Just make sure to add "X-Unsent: 1" MIME header to show the message as draft and avoid populating From/Sender MIME headers.

野却迷人 2025-01-31 17:10:36

所描述的选项都不是有效的。我将解释原因:

  1. 如果您处理O365或 ews 如果您具有Exchance Onfife notemise promise profiles。在这种情况下,您可以从Web应用程序中编程并发送电子邮件。但是,您需要在代码中处理有关消息历史记录等的所有请求。我想这是很多工作!但是,如果您不需要显示像Outlook这样的消息列表,则只需提交电子邮件,您就可以在服务器上的图形api 发送电子邮件。

  2. Web附加组件是在Outlook中当前选择的邮件/日历项的上下文中运行的。因此,他们没有任何帮助。

None of the options described are valid. And I will explain why:

  1. The web application can use Graph API if you deal with O365 or EWS if you have Exchange on-premise profiles. In that case you could compose and send emails programmatically from your web application. But you need to handle all requests for the message history and etc. in the code. That's a lot of work I suppose! But if you don't need to show a list of messages like Outlook does, just to submit emails you could Graph API on the server to send emails.

  2. Web add-ins are run under the context of currently selected mail/calendar items in Outlook. So, they don't have anything to help there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文