we use Aspose.Email.Mail to read msg file and prodvide the data inside the file e.g. From, To, Subject, Sent date etc. to another program.
this is running on a server, which gets triggered when an email msg has been saved there.
now, when we save the msg file using Outlook 2007 Professional Plus, it works… but when we try to save the emails from Outlook 2010 Pro Plus, it throws an exception and loading the msg line…
I have tried to reproduce this issue with the latest version of Aspose.Email for .NET 4.1.0 but I am afraid to share that the issue is not reproducible at my end. Could you please give it a try using this latest version and let us know your feedback? We will look into it and assist you further.
I am afraid but I am unable to face any such error. With the provided sample file and following sample code, the MSG file is loaded successfully by Aspose.Email for .NET 4.1.0 and saved to EML as well. I have attached the output of code, screenshot of output and the converted EML file here for your reference. Could you please provide us complete call stack of the exception that you are getting? Also, provide details about the machine where this issue arises such as OS, Service Pack, etc.
Sample Code:
string dir = “EMAIL_549382\”;
MailMessageLoadOptions options = new MailMessageLoadOptions();
options.MessageFormat = MessageFormat.Msg;
Stream fs = File.OpenRead(dir + “Pres [test take 0].msg”);
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.