Hey there!
I had trouble embedding an image directly into the body of an email using the Email module. Despite reading other posts, I couldn’t find the right solution. The most helpful advice was to download the image (e.g., from Google Drive), use an array aggregator, and map the output like so:
It worked, but the image appeared both inline and as an attachment. I wanted the image only in the email body.
After several tests, I found a solution that work perfectly:
Here are the steps I followed:
- Set up a trigger (I used a variable module just for testing).
- Download the file from Google Drive.
- Use the array aggregator.
- Create an email draft set as shown in the first screenshot.
- Retrieve the data from the newly created draft.
- Send an email with the mapped content only, ensuring the image is in the body, not as an attachment:
As you can see, I only map the content. This means that I will have the image in the body of the email but NOT as attachment. - Move the draft to the trash to clean up.
Now, this method works well and I hope that it can be helpful for some of you, but I’m curious if there’s a more streamlined way to do this with fewer steps?
Cheers!