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("email@example.com", "Organizer"); MailAddressCollection attendees = new MailAddressCollection(); MailAddress attendee1 = new MailAddress("firstname.lastname@example.org", "First attendee"); MailAddress attendee2 = new MailAddress("email@example.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);
We have detailed information available online for getting started with the Aspose.Email for Java API. These are:
- Product Documentation – Provides detailed examples of working with the API
- API Reference Guide – Details all the packages and classes of the API
- GitHub Examples – Provides ready to run API examples
- Aspose.Email Forum – Feel free to contact us on Aspose.Email forum for your queries