I am am using the Zmailbox class to create a calendar event. Everything works fine except...The event is created as plain text even though I put the content type as "text/html". Can anyone please help?



ZInvite invite = new ZInvite();
ZComponent comp = new ZComponent();
String start=CAL_FORMAT.format(evnt.getStartTime());
String end=CAL_FORMAT.format(evnt.getEndTime());
comp.setStart(new ZDateTime(start, timeZone.getID()));
comp.setEnd(new ZDateTime(end, timeZone.getID()));

comp.setLocation(evnt.getLocation());
comp.setComponentNumber("0");
comp.setName(evnt.getTitle());

comp.setDescriptionHtml(evnt.getDesc());
Date d=new Date();
Calendar cal=Calendar.getInstance();
cal.set(Calendar.DAY_OF_MONTH, 25);
cal.set(Calendar.HOUR_OF_DAY,14);
invite.getComponents().add(comp);

invite.setType(ZInvite.ZInviteType.appt);
ZMailbox.ZOutgoingMessage message = new ZMailbox.ZOutgoingMessage();
message.setSubject(evnt.getTitle());
ZMailbox.ZOutgoingMessage.MessagePart msg= new ZMailbox.ZOutgoingMessage.MessagePart(null, evnt.getDesc());
msg.setContentType("text/html");
ZMailbox.ZOutgoingMessage out=new ZMailbox.ZOutgoingMessage();
message.setMessagePart(msg);
....