防止Outlook中的winmail.dat(对于Gmail帐户) [英] Prevent winmail.dat in outlook (for gmail accounts)

查看:119
本文介绍了防止Outlook中的winmail.dat(对于Gmail帐户)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2013和Add-in Express v.7.7.4087开发了一个Outlook加载项.我必须处理多个电子邮件帐户(商店).请查看以下快照

I develop an outlook add-in using Visual studio 2013 and Add-in express v.7.7.4087. I have to deal with multiple email accounts (stores). Please see following snapshot

当我使用此Gmail帐户(通过Outlook)向其他Gmail收件人发送邮件时,我可以看到一个名为"winmail.dat"的附件.但是将文件发送给Exchange电子邮件收件人后,我看不到该文件.不过,对于Gmail收件人,我在Outlook已发送框中的邮件项中看不到该附件.

When I am sending a mail (via outlook) using this Gmail account to a some other Gmail recipient, I can see a attached file named "winmail.dat". But I can't see that file after sending it to Exchange Email recipients. Nevertheless, with Gmail recipients, I can't see that attachment in the mail item which is in outlook sent box.

我使用此交换帐户(通过Outlook)发送的同一封邮件.但它永远不会将任何"winmail.dat"文件附加到Exchange收件人或Gmail收件人

The same mail I sent it using this exchange account (via outlook). But it never attach any "winmail.dat" file to Exchange recipients or Gmail recipients

不仅如此,每次我看到此"winmail.dat"时,我都注意到Outlook用自己的"href"替换了链接文本(因此,用户只能看到href而不是我为此输入的文本) URL),这是我从未经历过的交流活动

Not only that, every time when I see this "winmail.dat", I noticed that outlook replace the text of link with own "href" (so, the user can see only the href not the text I put for that URL) which I never experienced with exchange

我需要什么?

  1. 请说明矛盾之处.
  2. 这有什么治愈方法吗?

  1. Please explain the contradiction.
  2. Is there any cure for this?

a.防止将"winmail.dat"附加到电子邮件中

a. Prevent attaching "winmail.dat" to the email

b.避免将HTML链接文本替换为自己的"href"

b. Avoid HTML link text to be replaced by own "href"

我做了什么?和细节

我的插件的目的是在带有Guid的邮件中包装一些URL.因此,我在发送之前修改了邮件项目的HTML正文.我也添加了一些用户属性(仅用于根据我的业务逻辑来处理邮件).但是我在发送之前删除了所有用户属性(在itemSend事件内部).

The purpose of my plugin is wrapping some URLs in the mail with guids. So, I modify the mail item's HTML body before sending it. I am adding some user properties too (just for manipulating mail item as per my business logics). But I remove all the user properties before sending (inside itemSend event).

在将Outlook邮件正文设置为纯文本(使用Outlook设置)后,我进行了相同的测试,但还是没有运气.

I followed the same test after setting the outlook mail body as plain text (using outlook settings), still no luck.

推荐答案

当最终用户从Exchange Windows或Outlook客户端向Internet发送邮件时,名为Winmail.dat的文件附件可能会自动添加到该文件的末尾.如果收件人的客户端无法接收RTF格式的消息,则会显示一条消息. Winmail.dat文件包含邮件的Exchange Server RTF信息,并且可能以二进制文件的形式显示给收件人.在以下文章中了解有关此内容的更多信息:

When an end user sends mail to the Internet from an Exchange Windows or Outlook client, a file attachment called Winmail.dat may be automatically added to the end of the message if the recipient's client cannot receive messages in Rich Text Format (RTF). The Winmail.dat file contains Exchange Server RTF information for the message, and may appear to the recipient as a binary file. Read more about that in the following articles:

  • How to Prevent the Winmail.dat File from Being Sent to Internet Users
  • Email received from a sender using Outlook includes a Winmail.dat attachment

请注意,如果您设置了任何用户属性,Outlook将尝试通过以TNEF格式发送消息来保留它们.您可以从传出项目中删除所有用户属性,并设置特殊的Extended MAPI属性,该属性可以阻止Outlook使用TNEF格式.

Note, if you set any user properties, Outlook will try to preserve them by sendign the mesage in the TNEF format. You can delete all user properties from the outgoing item and set a special Extended MAPI property which can prevent Outlook from using the TNEF format.

您可能会找到

You may find the Forcing Plain Text With MAPI article helpful.

这篇关于防止Outlook中的winmail.dat(对于Gmail帐户)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆