How to open Outbox/Sent-Emails in default email client, from Javascript on button click?

huangapple go评论77阅读模式
英文:

How to open Outbox/Sent-Emails in default email client, from Javascript on button click?

问题

当点击按钮时,我想向用户展示在他离开期间由我的程序发送的电子邮件(由另一个程序/模块自动发送电子邮件报告,当满足某些条件时)。

所以我认为一个好的方法是,在按钮点击时,打开用户的默认电子邮件客户端(例如,Thunderbird电子邮件客户端),并将其打开到“Outbox/已发送邮件”,而不是默认的“Inbox/收件箱”?

我应该如何实现这个功能?使用什么技术/插件/库/实用工具?

当我进行Google搜索时,它只显示了想要在“Compose Message/Email”页面打开电子邮件客户端的结果,使用Javascript中的**mailto**实用工具。但我需要在电子邮件客户端中打开Outbox/Outgoing/Sent Email。

英文:

On the click of a button, I want to show the user what emails have been sent (by another program/module which does automatic email based reporting when certain criteria are met) by my program while he was away.

So I have thought that a good way would be that, on button click, the default email client (e.g. thunderbird email client) of the user is opened, and it is opened at "Outbox/ Sent Emails" rather than the default "inbox/ incoming email"?

How can I implement this functionality? That is what technology/plugin/library/Utility to use?

When I did Google search, it only showed results for wanting to open email client at "Compose Message/ Email" page, using the mailto utility in Javascript. But I need to open the email client at Outbox/Outgoing/Sent Email.

答案1

得分: 1

无法使用JS代码自动化Outlook来显示任何已发送的消息或文件夹。只有Internet Explorer知道如何处理COM服务器,详见使用Outlook Automation 2007通过JavaScript撰写和发送电子邮件

英文:

You will not be able to automate Outlook from JS code to display any sent message or folder. Only Internet Explorer knows how to deal with COM servers, see Compose and Send E-mail from JavaScript by using Outlook Automation 2007.

huangapple
  • 本文由 发表于 2020年1月3日 19:45:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/59578061.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定