Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-16-2009, 10:50 PM
Junior Member
 
Posts: 5
Default Please help. CreateAppointmentRequest do not send email invitations to atten

Hi,

I am trying to create an appointment in Zimbra via SOAP API. I sent the following XML fragment (I removed the header and other stuff) to Zimbra and it can create a new appointment. However, no invitation emails were sent to attendees.

Code:
<CreateAppointmentRequest xmlns="urn:zimbraMail">
  <m>
    <inv>
      <comp fb="B" fba="B" name="Test appointment" allDay="1" isOrg="1">
        <s d="20090917"></s>
        <e d="20090917"></e>
        <or a="jacky@zimbra-desktop.localdomain" d="Jacky"></or>
        <at role="REQ" ptst="NE" d="John" rsvp="1" cutype="IND" a="somebody@gmail.com"></at>
      </comp>
    </inv>
  </m>
</CreateAppointmentRequest>
Can you tell me how to make Zimbra to send invitation emails? Thanks in advance.

Best regards,
Jacky
Reply With Quote
  #2 (permalink)  
Old 09-17-2009, 11:02 PM
Junior Member
 
Posts: 5
Default

Finally, I managed to fix the XML. Here is the fixed version.

Code:
<CreateAppointmentRequest xmlns="urn:zimbraMail">
  <m>
    <su>Test Appointment</su>
    <e p="John" a="someone@gmail.com" t="t"></e>
    <inv>
      <comp fb="B" fba="B" name="Test appointment" allDay="1" isOrg="1">
        <s d="20090917"></s>
        <e d="20090917"></e>
        <or a="jacky@zimbra-desktop.localdomain" d="Jacky"></or>
        <at role="REQ" ptst="NE" d="John" rsvp="1" cutype="IND" a="somebody@gmail.com"></at>
      </comp>
    </inv>
  </m>
</CreateAppointmentRequest>
The documentation about email address type in soap.txt line 661 for the TO is wrong. It should be "t" instead of "o". We can avoid this by using ToXML.EmailType.TO.toString() in Java code.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.