View Single Post
  #1 (permalink)  
Old 07-22-2008, 10:12 PM
Shikha Sood Shikha Sood is offline
Active Member
 
Posts: 30
Default How will the attendees Calendar get updated?

I have created the calendar using the Zmailbox, to create an appointment. But the attendees calendar is not getting updated.I believe it is so because the mail server is not working. And only when the attendees get a mail and they accept the invitation, then their calendar will get updated.

But don’t want to use the mail. So, is there way to do so? That the attendees calendar gets updated without getting the mail notification?

Here is my code

ZMailbox.ZOutgoingMessage message = new ZOutgoingMessage();
message.setSubject("toTest1");
message.setMessagePart(new MessagePart("text/plain","what is this?"));
ZInvite invite = new ZInvite();
ZComponent comp = new ZComponent();
comp.setStart(new ZDateTime(1216612800000L,false,TimeZone.getTimeZon e("Europe/Brussels")));
comp.setEnd(new ZDateTime(1216612809000L,false,TimeZone.getTimeZon e("Europe/Brussels")));
comp.setOrganizer(new ZInvite.ZOrganizer(zimbraMailBox.getName()));
comp.setName("abc");
ZAttendee z = new ZAttendee();
z.setAddress("rahul.jha@test-desktop.com");
List<ZAttendee> l = new ArrayList<ZAttendee>();
l.add(z);
comp.setAttendees(l);

ZAppointmentResult result = zimbraMailBox.createAppointment("10", null, message, invite, null); invite.getComponents().add(comp);
Reply With Quote