Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I generate email threads for outlook programmatically?

I have a web service that generatesMailMessages.

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

I have seen examples of decoding this information but nothing very clear to understand on encoding it.

When my webservice uses SMTP to send multiple emails about the same topic, I'd like the recipients of those emails, in outlook, to have the multiple emails threaded together similar to how replies will automatically chain and collapse in certain versions.

Can I do this without access to an exchange API? It seems like I should be able to since plenty of email clients thread replies without such a system.

like image 492
Matthew Avatar asked Dec 18 '15 23:12

Matthew


People also ask

How are emails threaded?

For instance, say you send an email invitation to a friend to lunch. The friend responds in the affirmative and suggests a restaurant. In turn, you reply with a confirming email. This is an email thread.


1 Answers

Outlook will recognize as threads if you create a message as a reply of the original message.

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

Managing the outlook mailbox is pretty straightforward. 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

like image 115
Jay Kim Avatar answered Oct 04 '22 20:10

Jay Kim