Free Support Forum - aspose.com

Pst file creation


#1

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


#2

@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?


#3

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


#4

@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.


#5

Thank you sir…


#6

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.


#7

@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.


#8

@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.


#9

Thank you sir…


#10

Is it possible to create a pst file using java?


#11

@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();
}


#12

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.


#13

@wolfvain,

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


#14

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


#15

@wolfvain,

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


#16

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


#17

@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.


#18

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.


#19

@wolfvain,

I have observed your comments.

For above please visit this documentation link.

For above please visit documentation link.


#20

Thank you so much it is working now!!!