TestMail.zip (974.5 KB)
The following code gives a new value for each run for the property mailMessage.MessageId. Is this an error?
Aspose.Email.MailMessage mailMessage = Aspose.Email.MailMessage.Load(@“C:\Temp\TestMail.msg”, new Aspose.Email.MsgLoadOptions());
Aspose.Email.Mapi.MapiMessage mapiMessage = Aspose.Email.Mapi.MapiMessage.FromFile(@“C:\Temp\TestMail.msg”);
string internetMessageId = mapiMessage.InternetMessageId; //This property is always null, which is expected.
string messageID = mailMessage.MessageId; //This property has a new value for each run of the code - why? The expected value is null (same value as mapiMessage.InternetMessageId)