Page 1 of 1

How to send New Email with Attachment using Zimbra API

Posted: Wed Aug 03, 2016 11:56 am
by manawa

I am trying to send an email with attachment through Zimbra SOAP API.
Following the documentation :

It states that the attchment should be uploaded first using the FileUploadServlet. The resulting ID being then send in the SOAP request in the "aid" attribute.

But the documentation of the FileUploadServlet never states that an ID is returned:

I am actually getting the following response when uploading a file with FileUploadServlet:

Code: Select all


The last number being a server token.

Response code is 200 so the request should have been processed successfully.

The question is: how to get the aid="{uploaded-MIME-body-ID}" from the FileUploadServlet ?

For information, I am using the API from a Java application.