Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Sep 07, 2021 03:05 AM
Hello,
I am wondering whether it is possible to add an image to the body of the emails that are sent using automation? I want to add the logo of the company to the signature.
Thanks
Amir-Homayoun
Sep 07, 2021 04:01 AM
Hi @Amir-Homayoun_Javadi - no, is doesn’t look like you can do this. Although the email body field supports markdown, it doesn’t support image markdown. This would work in a .md file:
![Airtable](https://upload.wikimedia.org/wikipedia/commons/thumb/4/4b/Airtable_Logo.svg/640px-Airtable_Logo.svg.png)
But it doesn’t work in the email action. This ties in with this article which makes no mention of images.
Sep 07, 2021 04:15 AM
Actually, Airtable quietly added support for images in automation emails a while ago. You use an html image tag. You can even set the height and width of the image (unlike in markdown).
Per the bottom of this support article …
We support using Markdown syntax and a variety of HTML tags within your emails to ensure things are formatted the way you’d like. We currently support using the following HTML tags:
<b>
,<br>
<u>
,<strong>
,<em>
,<img>
,<a>
and<span>
tags. You can also include inline CSS by adding astyle
attribute to your HTML tags.
Sep 07, 2021 05:58 AM
Jonathan and Kuovonne, thanks for your reply. Much appreciated.
Sep 08, 2021 03:13 PM
@kuovonne - I tried a regular html <img>
tag too, but this doesn’t work for me either. Did you get this working?
Sep 08, 2021 03:16 PM
Oh I see why this didn’t work. It is a bug really. This image:
https://dl.airtable.com/.attachments/e5d6574fb1f4c9cb38133a2bb7fa2f12/cde44e23/pcgb18_0338_fine.jpg
has underscores in it and it doesn’t render.
This image (no underscores) does:
https://1.cms.s81c.com/sites/default/files/2021-08-17/2020%20Corporate%20Environment%20Report.png
And by chance I had picked one with underscores
Sep 08, 2021 03:17 PM
I’ve done it a while ago. I put the entire body of my message in a long text field and then included only that one field in the message body. If you try to put it in piecemeal, you might experience some variations.
Sep 08, 2021 03:18 PM
I recall that including links in emails sometimes had problems too and needed escaping. Airtable got confused and would think that the underscores were markdown syntax.
Sep 08, 2021 03:20 PM
Yep - I think that’s what it is doing. As it is inside the src
attribute at this point, you would think it would deal with this, but a bug that can be workaround I guess, without too much issue. As you say, forming the full html content in a long text field is also a nice way of doing this
Sep 08, 2021 03:40 PM
@kuovonne sorry, this might be a very simple question. But how do you “put the entire body of the message in a long text field and then included only that one field in the message body”? Can you copy-paste a sample here? Thanks.