Outlook outlook = new Outlook();
OutlookFolder calendar = outlook.getDefaultFolder(FolderType.CALENDAR);
OutlookAppointment appointment = (OutlookAppointment) calendar.createItem(ItemType.APPOINTMENT);
appointment.setSubject("My appointment");
appointment.setStart(new Date());
appointment.setDuration(30);
appointment.getRecipients().createNew("john@example.com");
appointment.setMeetingStatus(MeetingStatus.MEETING);
appointment.send();
outlook.dispose();
API Reference
| Classic JavaDoc |
OutlookAppointment.send
public void send()
Community comments
To send the appointment, it's required to set the meeting status before calling send(). |
Powered by JavaDocPlus