javascript 如何从电子邮件链接或网页打开 Outlook 日历?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6282248/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to open Outlook Calendar from an email link or webpage?
提问by Dan
Is it possible to open Outlook Calendar from an email link or a webpage? I am looking for code that will open the recipient's Outlook Calendar. I don't want to populate the calendar with anything - just open Outlook Calendar so they themselves can block out some time.
是否可以从电子邮件链接或网页打开 Outlook 日历?我正在寻找可以打开收件人 Outlook 日历的代码。我不想用任何东西填充日历 - 只需打开 Outlook 日历,这样他们自己就可以抽出一些时间。
回答by Rendition
On the condition that outlook is installed on the client, you can use the following syntax:
在客户端安装了 Outlook 的情况下,您可以使用以下语法:
<outlook:calendar>
(as the link)
(作为链接)
Other links include:
其他链接包括:
To Open a Specific Item
打开特定项目
<Outlook:Contacts/~Itemname>
To open the contact fred blogs, type the following:
要打开联系人 fred 博客,请键入以下内容:
<Outlook:Contacts/~fred blogs>
To open an Item in a Public Folder
打开公共文件夹中的项目
<Outlook://Public Folders/Foldername/~Itemname>
For example, to open a contact named, "John Doe" in a plublic folder named, "Public Contacts" use the following hyperlink:
例如,要在名为“Public Contacts”的公共文件夹中打开名为“John Doe”的联系人,请使用以下超链接:
<Outlook://Public Folders/Public Contacts/~John Doe>
To open a file in a Public Folder
打开公共文件夹中的文件
<Outlook://Public Folders/Foldername/Mydocument.doc>
Note: In the above example Word will open the document file. You do not need to proceed the file name with a tilde since it is not an Outlook item.
注意:在上面的示例中,Word 将打开文档文件。您不需要使用波浪号继续文件名,因为它不是 Outlook 项目。
To Open an Item in a Subfolder of a Folder in Your Inbox
打开收件箱文件夹子文件夹中的项目
<Outlook:Inbox/Foldername/Subfoldername/~Itemname>
To open New Labor Time, located in the Labor folder in your Inbox, type the following:
要打开位于收件箱的“人工”文件夹中的“新人工时间”,请键入以下内容:
<Outlook:Inbox/Labor/~New Labor Time>
回答by Fidel
Rendition's answer is terrific and covers the grand majority of links. I just wanted to add one more because it took me a while to figure it out.
Rendition 的回答很棒,涵盖了绝大多数链接。我只是想再添加一个,因为我花了一段时间才弄明白。
When it comes to public folders, in the pastit was possible to just address them directly, for example:
对于公共文件夹,过去可以直接寻址它们,例如:
outlook://Public Folders/All Public Folders/TeamA/ItemName
However in Outlook 2010 and beyond, it seems you have to specify the recipient's email as well (see this MS knowledge-base article)
但是,在 Outlook 2010 及更高版本中,您似乎还必须指定收件人的电子邮件(请参阅此MS 知识库文章)
For example:
例如:
outlook://Public Folders - [email protected]/All Public Folders/TeamA/ItemName