Temporary License for Aspose.Network for .NET

Hello,

I placed licence file in assembly directory and still get “(Aspose.Network Evaluation)” instead of Subject of my mail message. I did as suggested on the forum.

Aspose.Network.License l = new Aspose.Network.License();

l.SetLicense("Aspose.Network.lic");

Now I got empty string reading my Outlook 2010 *.msg message Subject. How is that possible if the real subject should be “Temat prosty i krótki”. The HTML message body is also not initialized.

Regards,

J.G.

This message was posted using Email2Forum by sheliah.

Hi,

Thanks for considering Aspose.

For loading msg files, MessageFormat.Msg needs to be specified in the MailMessage.Load() method as follows:

MailMessage msg = MailMessage.Load(@“test.msg”, MessageFormat.Msg);

I created and saved an msg file using “Temat prosty i krótki” text in the subject and body. Then tried loading with the above statement and I was able to get the text in the MailMessage.Subject and HtmlBody properties.