c# 向 outlook html 邮件消息提供突出显示的文本
c# provide highlighted text to outlook html mail message
我正在向 outlook 提供以下 HTML 文本:
<span style="background-color:yellow;">test</span>
我用 Interop 提供这个:
mailItem.To = ...;
mailItem.Subject = ...;
mailItem.HTMLBody = result.Data.Content;
但是,在 Outlook 中,我无法删除突出显示。
How to format the HTML so Outlook will recognize it as a 'highlighted' text?
尝试将跨度更改为:
<span style='background:yellow;mso-highlight:yellow'>
看起来微软有一些特殊的属性。
我正在向 outlook 提供以下 HTML 文本:
<span style="background-color:yellow;">test</span>
我用 Interop 提供这个:
mailItem.To = ...;
mailItem.Subject = ...;
mailItem.HTMLBody = result.Data.Content;
但是,在 Outlook 中,我无法删除突出显示。
How to format the HTML so Outlook will recognize it as a 'highlighted' text?
尝试将跨度更改为:
<span style='background:yellow;mso-highlight:yellow'>
看起来微软有一些特殊的属性。