How to Create Mapi Contact using Java

In this topic, we will learn how to create Mapi Contact using Java by following the specifically defined steps and using the provided example code. One can easily add VCF contact using Java with the help of very simple API calls and may utilize the application in any Java supported environments in operating systems like Windows, macOS, or Linux.

Steps to Create Mapi Contact in Java

  1. Configure the application by installing the Aspose.Email JAR file from the repository
  2. Create an instance of the MapiContact to add the contact information
  3. Insert the user image for added contact
  4. Save the contact information as an MSG file on the disk
  5. Save the contact information as a VCF file on the disk

The above-mentioned stepwise instructions in Java create Mapi Contact and save that in multiple formats on the disk. We will commence by creating an instance of the MapiContact class and adding the personal contact information including its name, email, contact number, professional information, date of birth, user fields and an image of the contact. Finally, the contact will be saved as VCF and an MSG file on the disk.

Code to Add Mapi Contact in Java

The above application create Mapi Contact in Java by adding detailed contact information and saving that in MSG and VCF file formats on the disk. The contact information can be utilized to compose an email using different email clients including POP3, SMTP, or Exchange servers. Moreover, you can also store it inside a PST file or push it to an email server.

This example guides you to create VCF Contact in Java and save it on the disk. If you are interested in learning to add Mapi Calendar in Java, refer to the article on how to add MapiCalendar to PST using Java.

 English