Send multiple attachments with Mailgun

Hi there,

Sending mails with mailgun with multiple attachments is not working because Xano does not allow duplicate keys in the json payload.

I created the following mailgun payload to be used as params {} in the mailgun api request.

{
template: mailtemplate,
to: [email protected],
from: [email protected],
subject: Testing Mailgun,
h:X-Mailgun-Variables: {"name":"Test","body":"Testing"},
attachment: eyJhbGciOiJB....
attachment: eyJhbGciO.....
}

But Xano always removes the second attachment key/value. Is there a workaround for this? content-type: multipart/form-data seems te be required to be able to send attachments in Mailgun.

Thanks in advance

2 replies