Moyosoft Products | Services | Download | Contact us    
Java Outlook Connector
Products  >  Java Outlook Connector  >  API Reference    
API Reference
   
Overview  |  
Classic JavaDoc

OutlookAppointment.send

public void send()

Community comments


Send a meeting request
Vote up  |  Vote down
To send the appointment, it's required to set the meeting status before calling send().

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();


Powered by JavaDocPlus