I am converting meeting request EML files (containing an iCalendar) to MHTML as follows:
var msg = MapiMessage.FromMailMessage(“c:\test\input.eml”);
var saveOpts = new MhtSaveOptions();
saveOpts.MhtFormatOptions = MhtFormatOptions.WriteHeader | MhtFormatOptions.RenderCalendarEvent;
This works, but with the following issues:
The MHTML version does not include the email header of the meeting request. It only includes the meeting information, such as the subject, start time and end time. It is not showing when the meeting request was sent, and the “From” and “To” information.
It is not leaving a space between an organizer/attendee name and their email address. E.g. “Joe Bloggs(email@example.com)” <- no space between name and email).
It is not parsing “\n” as line breaks in text fields (which it should, per the RFC: https://icalendar.org/iCalendar-RFC-5545/3-3-11-text.html)
I attach a sample EML file, and the resulting MHTML file.sample.zip (4.2 KB)
Can you please advise how to do this, or could they be fixed?