Hi @thomas.gounot, apologies for the delayed reply from our side.
Yes, it is possible, you can attach the file to the body field action.
But the attachment, which can be sent via the Sendinblue plugin, should be a URL, but not a file.
Let us provide an example.
Summary
{
"sender": {
"name": "Alexandr Kacinski",
"email": "kacinski@gmail.com",
"id": 2
},
"to": [
{
"email": "jimmy98@example.com",
"name": "Jimmy"
}
],
"attachment": [
{
"url": "https://attachment.domain.com/myAttachmentFromUrl.jpg",
"name": "myAttachment.jpg"
}
],
"templateId": 2
}
Also, this is the case when you are adding an attachment from your database:
- template: Screenshot by Lightshot
- workflow: Screenshot by Lightshot
- result: Screenshot by Lightshot
And this is the case when you are adding the attachment from the frontend (page preview):
- template: Screenshot by Lightshot
- workflow: Screenshot by Lightshot
- design: Screenshot by Lightshot
- result: Screenshot by Lightshot
In case you would like to add a real attachment, please note that it is not possible while using this plugin, because you have to convert it to base64 first (as this plugin does not convert it automatically).
You can use also Sendinblueās doc hub to find the sandbox where you can compose the body for sending email/template actions:
As mentioned above, you need to convert them to base64 first or get URLs of the uploaded files , and include them in JSON body, following the provided example.
Hope it helps. Please let us know if you have any other questions related to our plugin, we will be glad to help.
Regards,
Zeroqode Support Team