Support for creating PST file (C# .NET)

How can i create a pst file without create the “Personal folders” root folder?

@alibardisk,

There is no such way to create a PST without the root folder which servers for further creation of folders and other contents in the PST storage file. Can you please elaborate why you need a PST without creating the root folder?

Sir i want to create a user define root folder when create a pst file

@alibardisk

You may change the display name for root folder as follows:

personalStorage.RootFolder.ChangeDisplayName("MyPersonalInbox"); 

Moreover, please feel free to write back to us if additional information is required.

Thank you sir…

Sir when i use this code it change the root folder name successfully.
But when i open the pst file in microsoft outlook it not show the new folder name, it show the old root folder name.
In other application it show the new root folder name.

@alibardisk

Thank you for your feedback.

We have logged this issue with ID “EMAILNET-39256” for further investigation. You will automatically be informed here once we have more information to share.

@alibardisk

In case of Outlook, you may need to change the display name of Store object which is displayed as root node in the Outlook. Please try the following code sample for this purpose:

personalStorage.Store.ChangeDisplayName("MyPersonalInbox");

Moreover, please feel free to write back to us if additional information is required.

Thank you sir…

Is it possible to create a pst file using java?

@wolfvain,

I have observed your comments. I have shared sample code with you. This will help you to achieve your requirements. Please share feedback with us if there is still an issue.

PersonalStorage pst = PersonalStorage.create(“path”, FileFormatVersion.Unicode);
try {
FolderInfo inboxFolder = pst.createPredefinedFolder(“Inbox”, StandardIpmFolder.Inbox);
MapiMessage msg = MapiMessage.fromFile(“msg path”);
inboxFolder.addMessage(msg);
}
finally {
pst.dispose();
}

Thank you for this i can not the com.aspose:aspose-email:jar:jdk16:19.1.

Please help so i can try the sample code.

@wolfvain,

I suggest you to please download the latest JAR from this link.

Its not downloading i’m using open internet connection it means no firewall or anything.

@wolfvain,

I am not sure what is issue on your end as there is no issue while downloading on my side.

Hi

I was able to download it successfully in the other network.
I have a problem i dont know what to place here its having a error.
image.png (3.9 KB)
Please attached file.

Thanks
Rodel

@wolfvain,

I have observed the image shared by you. I suggest you need to please check the inverted commas in the sample code and adding them again. This seems issues to me.

Hi

How to send email using java code? do you have sample code to look in to?
How to put data in the PST file i generated?

Thanks Again.

@wolfvain,

I have observed your comments.

For above please visit this documentation link.

For above please visit documentation link.

Thank you so much it is working now!!!