Non-working
Request
Code:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<sessionId id="32"/>
<change token="309" type="new"/>
<authToken>
0_a323e7924da0e7e5fb528c91f4323943f11654fa_69643d33363a32626531383161342d326334372d313164612d396664372d6364366136396538373763303b6578703d31333a313132383739333136343631373b
</authToken>
<format type="js"/>
</context>
</soap:Header>
<soap:Body>
<SendMsgRequest xmlns="urn:zimbraMail">
<m>
<e t="t" a="rodrigoccurvo@gmail.com"/>
<su>
testing zimbra
</su>
<mp ct="text/plain">
<content>
this is a test
</content>
</mp>
</m>
</SendMsgRequest>
</soap:Body>
</soap:Envelope>
Response
Code:
Body: {
Fault: {
Code: {
Value: "soap:Sender"
},
Detail: {
Error: {
Code: "mail.SEND_FAILURE"
}
},
Reason: {
Text: "Message not sent to any recipients because of these failed addresses: "
}
}
},
Header: {
context: {
change: {
token: 311
},
notify: {
modified: {
folder: [
0: {
id: 5,
n: 9,
s: 13305
}
],
mbx: {
s: 16429
}
}
},
sessionId: [
0: {
_content: "32",
id: "32"
}
]
}
} and
Code:
code: "mail.SEND_FAILURE",
detail: "soap:Sender",
method: "ZmCsfeCommand.invoke",
msg: "Message not sent to any recipients because of these failed addresses: "
------------------------
Working
Request
Code:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<sessionId id="4"/>
<change token="126" type="new"/>
<authToken>
0_734af765543eacac8cc37c60941ce3c4c0edc850_69643d33363a37623131326666392d333639322d313164612d383561322d6537616633376538336438393b6578703d31333a313132383739363033353137313b
</authToken>
<format type="js"/>
</context>
</soap:Header>
<soap:Body>
<SendMsgRequest xmlns="urn:zimbraMail">
<m>
<e t="t" a="rodrigoccurvo@gmail.com"/>
<su>
testing zimbra again
</su>
<mp ct="text/plain">
<content>
this is another test
</content>
</mp>
</m>
</SendMsgRequest>
</soap:Body>
</soap:Envelope>
Response
Code:
Body: {
SendMsgResponse: {
m: [
0: {
id: 380
}
]
}
},
Header: {
context: {
change: {
token: 127
},
notify: {
created: {
c: [
0: {
d: 1128623364000,
e: [
0: {
a: "user1@nc2000.orolix.com",
d: "Demo",
id: "0",
p: "Demo User One"
}
],
f: "s",
id: -380,
md: 0,
n: 1,
su: "testing zimbra again"
}
],
m: [
0: {
cid: -380,
d: 1128623364000,
e: [
0: {
a: "rodrigoccurvo@gmail.com",
d: "rodrigoccurvo",
id: "0",
t: "t"
},
1: {
a: "user1@nc2000.orolix.com",
d: "Demo",
id: "1",
p: "Demo User One",
t: "f"
}
],
f: "s",
fr: "this is another test",
id: 380,
l: 5,
md: 1128623364,
rev: 127,
s: 329,
su: "testing zimbra again"
}
]
},
modified: {
folder: [
0: {
id: 5,
n: 2,
s: 627
}
],
mbx: {
s: 1414
}
}
},
sessionId: [
0: {
_content: "4",
id: "4"
}
]
}
}