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