Tag Outlook MailItem with ID number before send without causing TNEF (RTF) send

北城以北 提交于 2019-12-04 23:27:17

Do not use UserProperties collection to tag a message - it updates both the blob with the user properties' definition and the named property where the user prop value is stored. If you use MailItem.PropertyAccessor.SetProperty to set the latter without setting the former, Outlook will not force the TNEF format.

It is safe to set the UseTnef property to false unless you are sending in the RTF format - check if that property is set to true before resetting it to false.

Eugene Astafiev

There is no anything strange in preventing winmail.dat from sending. You can continue un-setting the TNEF property in the ItemSend event.

Be aware, Outlook tracks related messages by using Conversations. You can use the Conversation* (*ID + *Index) related properties to identify emails in your Inbox.

See Does Outlook embed a MessageID or equivalent in its email elements? for more information.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!