简体   繁体   English

在Outlook加载项中更改电子邮件的正文内容

[英]Changing the body content of email in Outlook Add-In

Hi I am developing an outlook add-in using jQuery. 嗨,我正在开发使用jQuery的Outlook加载项。 I am trying to add the links to the contents of the emails in the main body. 我正在尝试在主体中添加指向电子邮件内容的链接。 But I am not able to add the links. 但是我无法添加链接。 They only gives the option of known-entities and regular expression which do not fulfill my requirement. 它们仅提供不满足我要求的已知实体和正则表达式的选项。

For example let say I have the following emails. 例如,假设我有以下电子邮件。

Hi I am trying to make the outlook plugin. 嗨,我正在尝试制作Outlook插件。 Please help me on that. 请帮我。

And another email :: 还有另一封电子邮件::

Hey outlook developers, I am too impatient to find the options of changing the email body in the outlook plugin. 嗨,Outlook开发人员,我太急了,无法在Outlook插件中找到更改电子邮件正文的选项。 Outlook plugins are cool Outlook插件很棒

Now lets say i have the list of words ["Please", "body", "options", "outlook"] to which I have to add links on my email body such that the emails should change into :: 现在,让我说我有单词列表["Please", "body", "options", "outlook"] ,我必须在其电子邮件正文上添加链接,以便电子邮件应更改为::

Email 1: 电子邮件1:

Hi I am trying to make the outlook plugin. 嗨,我正在尝试制作Outlook插件。 Please help me on that. 帮我。

and Email 2 和电子邮件2

Hey outlook developers, I am too tired to find the options of changing the email body in the outlook plugin. 嘿Outlook开发人员,我太累了,无法在Outlook插件中找到更改电子邮件正文选项 Outlook plugins are cool Outlook插件很棒

Is there any way I can achieve this in Outlook Desktop or Web in any platforms? 有什么方法可以在任何平台的Outlook Desktop或Web中实现? Any help will be much appreciated. 任何帮助都感激不尽。

KnownEntities and RegexMatches are effective in these cases, you can check out Contextual add-in , which will add links to the mail body and clicking on those links will open your add-in in place. KnownEntities和RegexMatches在这些情况下有效,您可以签出Contextual加载项 ,它将在邮件正文中添加链接,然后单击这些链接将在适当的位置打开您的加载项。

上下文外接程序打开到位

If you just want to add a hyperlink to the body, Web based add-in APIs does not support modification of mail body in read mode, whereas you can use Body APIs in compose mode to manipulate the body. 如果只想向正文添加超链接,则基于Web的外接程序API不支持在读取模式下修改邮件正文,而可以在撰写模式下使用正文API来操纵正文。

If your scenario is only for read-mode, web-based add-in won't help. 如果您的方案仅适用于读取模式,则基于Web的加载项将无济于事。 For Windows-Outlook, you can create VSTO add-ins and to start with this question should help you. 对于Windows-Outlook,您可以创建VSTO加载项,并且从这个问题开始应该会为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM