How to create .msg for task that can be opened in Gmail format

Hello,

I have the following codes to generate a .msg file for my Task.
It works great and opened up just fine in Outlook. However, I can't seems
to open it up in Gmail Format. Is there a way we can generate a .msg file
for task that can be opened in Gmail as well?

Thanks

//Task tsk =
new Task();
MapiTask task = new MapiTask();
task.Subject = "strSubject";
task.Body = "strNotes";
task.StartDate = new DateTime();
task.DueDate = new DateTime();
task.DateCompleted = new DateTime();
task.PercentComplete = 100;
task.ReminderSet = true;
task.ReminderTime = new DateTime();
MemoryStream memStr = new MemoryStream();
task.Save(memStr, TaskSaveFormat.Msg);
MapiMessage mapi1 = MapiMessage.FromStream(memStr);
Int64 iMapiProperty = 2;//0:LOW, 1:NORMAL, 2:HIGH
MapiProperty prop = new MapiProperty(MapiPropertyTag.PR_IMPORTANCE, BitConverter.GetBytes(iMapiProperty));
mapi1.SetProperty(prop);
mapi1.Save("TestMapiTask2.msg");

Hi Loi,


Thank you for writing to Aspose support team.

Could you please share how are you trying to open the .MSG file of Task with Google format? At present, Aspose.Email only supports loading Google task from VToDo ICS format but doesn’t support saving in this format. Your feedback will help us to investigate the possible export of MapiTask to Google format.