Webhook email attachment (delete + email body)

Hello everyone,

I am currently struggling with 2 problems.

I have an email webhook to which azure sends my subscribed price view. I extract the attachment (png) and resend the email with a nice template, works.

Problem 1: do you know how I can integrate the image from the attachment into my email body?

Problem 2: azure sends two images, one inline and one as an attachment, the webhook creates 2 attachments from this, which are then forwarded at the end. How can I control this so that I only forward one attachment? I can’t change this in azure.

Do you need any further information?

Thank you very much for your help.

HI,

Is this a solution that could help for that attachment/inline aspect of your question?

L

Welcome to the Make community!

In summary: You’ll just need to use a HTML image tag with the cid set to the attachment’s cid.

To do that you’ll need an aggregator module to compile the attachments with a unique cid.

It’s easy and I’ve even done it before too.

Hope this helps! Let me know if there are any further questions or issues.

You can also join us in the Make Fans Discord server to chat with other makers!

Many thanks for the welcome. I joined the Discord server. :slight_smile:

How i get the CID from the aggregator. It’s the data id, isn’t it?

Yes, you can even use the special UUID variable to generate a random id in the Array Aggregator.

Hope this helps! Let me know if there are any further questions or issues.

You can also join us in the Make Fans Discord server to chat with other makers!

Done, i used the file size. Can i download multiple files from Dropbox to put it into the body? I had tried it with a router; downloaded the file in both strands and processed it with the aggregator, but I can’t get the second strand into the main strand so that I can get the image into the e-mail.