Description
A typical use case is to attach images in the body of the email when sending it. In this article you find the steps to dynamically insert images into the body of an email.
Instructions
Here are the steps:
1. Use the Assign value to variable activity to create a variable that will contain the path of the image you want to attach in the body of the email. Here is an example:
mg_path = "https://electroneek.com/access/img/black_logo.png"
2. Use the Send email activity to send the email
3. To attach an image to the body of the email, add the following HTML tag to the “Mail body“ section:
'<img src="'+img_path+'">'
Note that img_path
is the variable defined in step 1. The final mail body must look like this:
TIp: You can add more parameters to the <img> tag accordion to the HTML definition: <img>: The Image Embed element - HTML: HyperText Markup Language | MDN
The final implementation looks like this: