APIs & Integrations

TIDEV
Member

Embed dynamic image in Transactional Email

Can someone guide to embed an Image/PDF within a transactional email using Single-Send API.

Example…

Congratulations on completing your training program.
Please see below your certificate. We encourage you to print and proudly display your achievement.

(Certificate Image Here)

If this is not possible, does Hubspot see this feature being implemented in near future ?
Note: Having it as an attachment will be an acceptable solution


0 Upvotes
3 Replies 3
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Embed dynamic image in Transactional Email

Hi @camilladrake,

You can include custom properties when sending an email via the Single Send API, so you could do the following:

  1. Add an img tag to your email, and set the src attribute to a custom property (e.g. <img src="{{ custom.image_url }}">
  2. Include the image's url in your Single Send API request as a custom property (e.g.
"customProperties": [
  {
    "name": "image_url", 
    "value": "https://www.example.url"
  }
]
DTeam34
Member

Embed dynamic image in Transactional Email

Hi Derek,

so the above image tag code should be added in html module in hubspot email or any other tag/module to be used for adding these image tags.

0 Upvotes
cdrake
Member

Embed dynamic image in Transactional Email

Did you get an answer for this? I'm also trying to embed a dynamic image in a transactional email which is being pulled in via image URL.

0 Upvotes