How can I generate email streams for Outlook with software?

I have a web service that generates MailMessages .

How can I generate and send multiples so that Outlook recognizes them as threaded?

I saw examples of decoding this information, but nothing understandable in the encoding .

When my web service uses SMTP to send multiple emails on the same topic, I would like the recipients of these emails in Outlook to look like several emails are merged together, similar to how the answers will be automatically linked and collapsed in certain versions.

Can I do this without access to the sharing API? It seems I should be able to, as there are many answers to email client requests without such a system.

+6
source share
2 answers

Verify that the Thread-Index MIME header is set correctly. It will be based on the PR_CONVERSATION_INDEX MAPI property (see https://msdn.microsoft.com/en-us/library/office/cc765583.aspx ). Take a look at existing messages using OutlookSpy (click the "Message" button). You can also see how Outlook creates messages and fills the Thread-Index MIME header by clicking IConverterSession | MAPIToMIMEStm button.

+2
source

Outlook recognizes as threads if you create a message as a response to the original message.

The most efficient way to send mail through Exchange Server (Outlook) is to use the "Outlook Mail REST API". Typically, the exchange server installs the service on the installed web server.

Managing your Outlook mailbox is pretty simple. Please refer to the following URL to learn how to use the REST API.

https://msdn.microsoft.com/office/office365/APi/mail-rest-operations#SendMessages

+1
source

All Articles