Winmail.dat 从地址簿发送给某些收件人

发布于 2024-07-25 18:58:44 字数 556 浏览 1 评论 0原文

我正在为 Outlook(2003 和 2007)制作一个插件,它会更改在 ItemSend 事件处理程序中发送的消息的正文和主题。 我在接收 html 内容的 winmail.dat 文件时遇到问题。 我在论坛上发现,为了避免这种情况,我需要将邮件的 UseTnef 属性设置为 false,将收件人的 PR_SEND_RICH_INFO 设置为 false。 我已经成功地通过扩展 MAPI 完成了前者,但我正在努力解决后者。 使用 McfMapi,我可以看到联系人地址簿中的 PR_SEND_RICH_INFO 为 false,但是当我检查收件人表 (GetMessageRecipients) 并迭代槽属性时,对于某些收件人,属性标记为 0x34a0000a,这表示错误或丢失属性。 在发件箱中创建邮件后,对于具有错误标记的收件人,此属性设置为 true,并且他们会在客户端中收到 winmail.dat。 我什至尝试将属性标记更改为 0x3a40000b 并将其设置为 false,使用更改后的表作为参数调用修改接收者,但没有效果。

您有什么想法或建议可以帮助我解决这个问题吗?

预先感谢

弗拉基米尔·梅迪奇

I’m making an addIn for Outlook(2003 and 2007) which is changing the body and the subject of the message that is sent in the ItemSend event handler. I have a problem with recipients receiving winmail.dat file for html content. I have found on forums that to avoid this I need to set UseTnef property to false for the message and PR_SEND_RICH_INFO for the recipients. I have managed to do the former via Extended MAPI, but I’m struggling with the later. Using McfMapi, I can see that PR_SEND_RICH_INFO in the address book for the contact is false, but when I check the recipients table (GetMessageRecipients) and iterate trough properties, for some recipients the property tag is 0x34a0000a which indicates an error or missing property. After the message is created in outbox, for the recipients that had error tag this property is set to true and they receive winmail.dat in their clients. I even tried to change property tag to 0x3a40000b and set it to false, call on ModifyRecipients with the changed table as parameter but no effect.

Do you have any idea or advice that may help me with this problem?

Thanks in advance

Vladimir Medic

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

攒一口袋星星 2024-08-01 18:58:44

您可能应该在此处发布以获得更好的回复。 德米特里是回答你的问题的合适人选..

you should probably post here to get better response. Dmitry is the right person to answer your question..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文