We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Issue in adding msg

Hi Kashif,

I have one problem that i want to add message into particullar folder in pst file..for that i write
following code.
plz check that is it right way to add msg into file.

mailmessage = MailMessage.Load(EmlPath);
mapimessage = MapiMessage.FromMailMessage(mailmessage);
ObjPersonalStorage = PersonalStorage.FromFile(p_pstFileName);

but here in exception is thrown that file is used by other process..but no other will used it..
please reply soon

Hi Pooja,

This is not a limitation of Aspose.Email. A PST can be accessed by only one process at a time. If you have had your PST open in Outlook, Outlook won’t leave its control unless you close it. Once you release the PST by closing any such process, you will be able to add Messages to the PST via Aspose.Email.