Setting Participant Status for MeetingThis 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("firstname.lastname@example.org", "Organizer"); MailAddressCollection attendees = new MailAddressCollection(); MailAddress attendee1 = new MailAddress("email@example.com", "First attendee"); MailAddress attendee2 = new MailAddress("firstname.lastname@example.org", "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);
We have detailed information available online for getting started with the Aspose.Email for Java API. These are: