Hi,
I am trying to forward an email that has 2 attachments using SOAP API. Here is the SOAP msg looks like:
Code:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<authToken>123456</authToken>
</context>
</soap:Header>
<soap:Body>
<SendMsgRequest xmlns="urn:zimbraMail">
<m origid="323" rt="w">
<e t="f" a="tester@zim.test.com"/>
<e t="t" a="testToer@simple.com"/>
<su>FW: Test-2</su>
<mp ct="text/plain">
<content>Test FW</content>
</mp>
<attach aid="1234, 5678">
<m id="323"/>
</attach>
</m>
</SendMsgRequest>
</soap:Body>
</soap:Envelope> I'm getting only the new body not the original body and also I'm not able to get the 2nd attachment. If the change attach TAG to different way as follows:
Code:
<attach>
<m id="323"/>
</attach> then I'm getting the original email as attachment not as in-line. If I change attach TAG as follows:
Code:
<attach aid="1234">
<m id="323"/>
</attach> then I'm not getting the original msg, but I'm getting only the attachment which was uploaded(1234).
Could anybody please tell me what I'm doing wrong and how to forward an email with multiple attachments and in-line original body with new body?
Thanks a lot for help.
- VistoPartner.