Help with Sending Attachments in Mailgun

Good morning, everyone. Has anyone here ever worked with sending emails through Mailgun?

I need to send invoices and payment slips as attachments in the email. According to the documentation, the attachment needs to be a string because the content is multipart/form-data, right?

I would like some help on how to take the files I have stored in Xano and send them via their Mailgun API in an email. I don't understand how to do it because when I use the GET FILE RESOURCE DATA FROM and send its data, it works—the file is sent and opens correctly in the email. However, the file name in the email ends up being random. Has anyone gone through this and could help me?

link docs mailgun - https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Messages/

1
2 replies