Results 1 to 6 of 6

Thread: How to send New Email with Attachment using Zimbra API

  1. #1
    VistoPartner is offline Intermediate Member
    Join Date
    Dec 2008
    Posts
    16
    Rep Power
    6

    Default How to send New Email with Attachment using Zimbra API

    Hi Guys,

    I was trying to figure out how to send a new Email with attachment. When I looked at the soap.txt file, I saw that I have to upload the attachment first and then use the returned attachment-upload-ID for the SendMsgRequest.

    I couldn't find any example or how to use the FileUploadServlet. Can anybody help me where to look for an example?

    Thanks.

  2. #2
    parin is offline Active Member
    Join Date
    Feb 2013
    Location
    India
    Posts
    28
    Rep Power
    2

    Default

    I have same problem.. there is no guide how to upload and use that id in request... did you get the solution ??

  3. #3
    dalmate is offline Elite Member
    Join Date
    Jan 2009
    Posts
    359
    Rep Power
    6

    Default

    Hope you know how to use SOAP by java.
    You can use 2 SOAP requests to do this thing: FileUploadServlet and SendMsgRequest.
    In the first step, you use FileUploadServlet to upload your message to server and get message's id from FileUploadServlet's response.
    In SendMsgRequest, it has an attribute aid, all you need is giving it message's id.

  4. #4
    parin is offline Active Member
    Join Date
    Feb 2013
    Location
    India
    Posts
    28
    Rep Power
    2

    Default

    thank you dalmate for your reply. i know there are two steps to upload a file on server. but it would be best if the sample code is available to upload any file to zimbra. i know how to send message and how to add attachment id v. but don't know the exact code example about how to upload it.

    Thank You

  5. #5
    parin is offline Active Member
    Join Date
    Feb 2013
    Location
    India
    Posts
    28
    Rep Power
    2

    Default

    here is a link to a full documentation of zimbra soap API :- SOAP API Reference Material Beginning with ZCS 8.0 - Zimbra :: Wiki

  6. #6
    dalmate is offline Elite Member
    Join Date
    Jan 2009
    Posts
    359
    Rep Power
    6

    Default

    Quote Originally Posted by parin View Post
    here is a link to a full documentation of zimbra soap API :- SOAP API Reference Material Beginning with ZCS 8.0 - Zimbra :: Wiki
    If you want to upload file to Zimbra, don't use SOAP because Zimbra does not have this service.
    I recommend you use httpupload to upload to this url: http[s]://yourdomain.com/service/upload

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Moving Zimbra to a new server
    By krolen in forum Administrators
    Replies: 109
    Last Post: 02-05-2009, 11:38 AM
  2. zmperditionctl start asking for password
    By k7sle in forum Administrators
    Replies: 32
    Last Post: 02-20-2008, 11:13 AM
  3. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 03:37 AM
  4. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  5. Replies: 8
    Last Post: 02-27-2007, 04:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •