Hello
When loading a MSG and saving it as EMLX, the TNEF is lost.
Maybe add EmlxSaveOptions to the feature request list?
Dim AsposeMessage As Email.MailMessage = Email.MailMessage.Load(New MemoryStream(streamEML, False))
AsposeMessage.Save(SFD.FileName, Email.SaveOptions.CreateSaveOptions(Email.MailMessageSaveType.EmlxFormat))
AsposeMessage.Dispose()
You can even use this code:
Sample MSG attached, check the resulting EMLX
Sample2.zip (170.1 KB)
@australian.dev.nerds
We have logged this problem in our issue tracking system as EMAILNET-40755. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
@australian.dev.nerds
To generate TNEF content in the resulting file, please use the following code example.
MapiMessage msg = MapiMessage.Load("Sample.msg");
MailMessage eml = msg.ToMailMessage(new MailConversionOptions() { ConvertAsTnef = true });
eml.Save(MyDir + "output.emlx", SaveOptions.CreateSaveOptions(MailMessageSaveType.EmlxFormat));