Creating “.msg” file for Outlook in Golang

380 views
Skip to first unread message

Navindra Kumar

unread,
Nov 2, 2018, 1:00:33 AM11/2/18
to golang-nuts
I want to create a file in Microsoft Outlook .msg format on my local machine by using Golang so that when a user clicks on the .msg file it could open in MS Outlook. Please help if anybody has done it.

Tamás Gulácsi

unread,
Nov 2, 2018, 2:31:55 AM11/2/18
to golang-nuts
2018. november 2., péntek 6:00:33 UTC+1 időpontban Navindra Kumar a következőt írta:
I want to create a file in Microsoft Outlook .msg format on my local machine by using Golang so that when a user clicks on the .msg file it could open in MS Outlook. Please help if anybody has done it.

Theoretically, you can - start with https://metacpan.org/pod/Email::Outlook::Message and Microsoft documentation and lot of example files and re-implement that horrible proprietary format.

Practically, use something simple and well understood - .EML - that's simple text, as on the wire (MIME encoded).
See RFC5322.
Reply all
Reply to author
Forward
0 new messages