Results 1 to 2 of 2

Thread: Soap and Multiparts

  1. #1
    iznodelavega is offline New Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    5

    Default Soap and Multiparts

    Hi
    I write an application to create a draft message with an attachement

    when i call soap for SaveDraftRequest it work fine
    but i can't send the Multipart Centent with base64 encoding

    I found "Content-type" and "Cont-disp"

    But how in soap attirbute of MP add the "Content-transfer-encoding: base64" directive ?

    How can i add "Content-transfer-encoding" for the MP content

    Or must i upload the attachement before or after adding draft

    That a part of the request :

    <SaveDraftRequest xmlns="urn:zimbraMail">
    <m><su>SendTo</su>
    <mp ct="multipart/mixed">
    <mp body="1" ct="text/plain" part="1"><content>Hello</content></mp>
    <mp cd="attachment;filename=&quot;MAILCIE.text&quot;"
    ct="application/octet-stream;name=&quot;MAILCIE.text&quot;" part="2.1.1">
    <content>PGh0bWw+CiAgPGhlYWQ+CiAgPC9oZWFkPgogIDxib 2R5PgogICAgPHA+VGhpcyBpcyB0aGUgYm9keSBvZiB0aGUgbWV zc2FnZS48L3A+CiAgPC9ib2R5Pgo8L2h0bWw+Cg==</content>
    </mp>
    </mp>
    </m>
    </SaveDraftRequest>


    Thanks

  2. #2
    dillchen is offline Junior Member
    Join Date
    Jun 2013
    Posts
    5
    Rep Power
    1

    Default same problem with sendmsgrequest

    Quote Originally Posted by iznodelavega View Post
    Hi
    I write an application to create a draft message with an attachement

    when i call soap for SaveDraftRequest it work fine
    but i can't send the Multipart Centent with base64 encoding

    I found "Content-type" and "Cont-disp"

    But how in soap attirbute of MP add the "Content-transfer-encoding: base64" directive ?

    How can i add "Content-transfer-encoding" for the MP content

    Or must i upload the attachement before or after adding draft

    That a part of the request :

    <SaveDraftRequest xmlns="urn:zimbraMail">
    <m><su>SendTo</su>
    <mp ct="multipart/mixed">
    <mp body="1" ct="text/plain" part="1"><content>Hello</content></mp>
    <mp cd="attachment;filename=&quot;MAILCIE.text&quot;"
    ct="application/octet-stream;name=&quot;MAILCIE.text&quot;" part="2.1.1">
    <content>PGh0bWw+CiAgPGhlYWQ+CiAgPC9oZWFkPgogIDxib 2R5PgogICAgPHA+VGhpcyBpcyB0aGUgYm9keSBvZiB0aGUgbWV zc2FnZS48L3A+CiAgPC9ib2R5Pgo8L2h0bWw+Cg==</content>
    </mp>
    </mp>
    </m>
    </SaveDraftRequest>


    Thanks


    did find a solution??????

Thread Information

Users Browsing this Thread

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

Posting Permissions

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