Setting Participation Status of Attendees with Aspose.Email for Java 18.3

Share on FacebookTweet about this on TwitterShare on LinkedIn
aspose-email-for-javaAsopse.Email for Java 18.3 has been released. This release introduces new feature of setting participation status of meetings attendees. It also brings further stability to API functionality by fixing issues that were reported with earlier versions of the API. For complete details on what is new and fixed, please visit the release notes section of API documentation.

Setting Participant Status for Meeting

This release of Aspose.Email for Java API lets you set the participation status of attendees of a meeting. This lets you add the same information to output ICS file in the form of PARTSTAT property. Status can be set to accepted as well as declined as per user’s requirements. This is as demonstrated by the following code sample.
String location = "Room 5";
java.util.Calendar c = java.util.Calendar.getInstance();
c.set(2011, 11, 10, 10, 12, 11);
Date startDate = c.getTime();
c.set(2012, 10, 13, 13, 11, 12);
Date endDate = c.getTime();
MailAddress organizer = new MailAddress("aaa@amail.com", "Organizer");
MailAddressCollection attendees = new MailAddressCollection();
MailAddress attendee1 = new MailAddress("bbb@bmail.com", "First attendee");
MailAddress attendee2 = new MailAddress("ccc@cmail.com", "Second attendee");

attendee1.setParticipationStatus(ParticipationStatus.Accepted);
attendee2.setParticipationStatus(ParticipationStatus.Declined);
attendees.addMailAddress(attendee1);
attendees.addMailAddress(attendee2);

Appointment target = new Appointment(location, startDate, endDate, organizer, attendees);

API Resources

We have detailed information available online for getting started with the Aspose.Email for Java API. These are: