superfaceai / station

Comlink metadata for self-integrating applications.
https://superface.ai/catalog
MIT License
22 stars 5 forks source link

feat(communication/send-email): Add attachments #176

Closed tjerabek closed 2 years ago

tjerabek commented 2 years ago

Description

This PR adds sending attachments into send-email use case. Attachments are an array of objects. Content of an attachment is base64 encoded file.

Motivation and Context

This solves need for sending attachments using email providers.

Types of changes

Checklist:

jnv commented 2 years ago

@tjerabek This is approved but got some conflicts :grimacing: Could you please fix the recordings and merge it?

jnv commented 2 years ago

Note that the implementation for Mailgun is incorrect, it's supposed to send attachments as multipart/form-data but that's not the case. I would prefer to fix that separately to finally merge this.