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

Free Support Forum - aspose.com

Contact is not get added in PST using Aspose.Email for JAVA API

I have to write contact into PST. I have created MapiContact object and added in to PST writer but i got some exception -> com.aspose.email.system.exceptions.NotSupportedException: MessageClass of the item to be added doesn’t supported. at com.aspose.email.FolderInfo.addMapiMessageItem

I have shared sample please check it and revert back me.
SysTools_No Name(4).vcf.zip (282 Bytes)


Please try it with the latest version of API i.e. Aspose.Email for Java 18.3 as it doesn’t raise any exception at our end with following lines of code.

MapiContact contact = MapiContact.fromVCard("174889//SysTools_No Name.vcf");

PersonalStorage pst = PersonalStorage.create("174889//vcfPst.pst", FileFormatVersion.Unicode);

FolderInfo fi = pst.createPredefinedFolder("ContactsVCF", StandardIpmFolder.Contacts);