Hi Team
We are using java language in our project and finding issue on converting calendar event to msg file.
We are seeing that msg body not able to render calendar visuals but source eml does.
sampleCalendarFiles.7z (10.6 KB)
image.png (16.2 KB)
Image.png --> Able to see the calendar visuals on eml file
Below java code we are using to convert
======================
String sourceEmlPath = “/home/test/sourceCalendarTest.eml”;
String saveType = “msg”;
String saveMsgPath = “/home/test/outputCalendarTest.msg”
MailMessage mail = MailMessage.load(sourceEmlPath);
SaveOptions saveOptions = SaveOptions.createSaveOptions(saveType);
if (saveOptions instanceof MsgSaveOptions) {
((MsgSaveOptions) saveOptions).setPreserveOriginalDates(true);
}
try(FileOutputStream fos = new FileOutputStream(saveMsgPath)) {
mail.save(fos, saveOptions);
}
==========================================
I am attaching the source EML and MSG file (after conversion) also for validating purpose.
Note: We are using Aspose email version --> 19.2