solved issue on attachments
This commit is contained in:
parent
5f6660bcc4
commit
11e5469dbf
|
@ -137,9 +137,8 @@ public class DefaultMessageManager implements MessageManagerClient {
|
||||||
formData.add("subject", subject);
|
formData.add("subject", subject);
|
||||||
formData.add("body", body);
|
formData.add("body", body);
|
||||||
if (attachments!=null)
|
if (attachments!=null)
|
||||||
attachments.forEach(a -> formData.add("attachemnts[]", a));
|
attachments.forEach(a -> formData.add("attachments[]", a));
|
||||||
|
|
||||||
System.out.println(formData.toString());
|
|
||||||
GXInboundResponse response = myManager.post(Entity.entity(formData, MediaType.APPLICATION_FORM_URLENCODED));
|
GXInboundResponse response = myManager.post(Entity.entity(formData, MediaType.APPLICATION_FORM_URLENCODED));
|
||||||
if (response.isErrorResponse()) {
|
if (response.isErrorResponse()) {
|
||||||
if (response.hasException())
|
if (response.hasException())
|
||||||
|
|
Loading…
Reference in New Issue