How to send New Email with Attachment using Zimbra API

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Posts: 5
Joined: Mon Feb 15, 2016 7:02 am

How to send New Email with Attachment using Zimbra API

Postby manawa » Wed Aug 03, 2016 11:56 am


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.

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 4 guests