Apr 07, 2023 02:11 AM
Hey all,
Having a request from a client I found a way to add image in our signatures for email we send using Gmail action in Airtable.
Due to the fact that the image element is not included in Airtable's markdown list we can add it by adding a piece of html code in our action. Below is the code and the explanation of using it.
</td><td width=96 valign=top>
<div class=t102 style="display:inline-table;text-align:initial;vertical-align:inherit;width:48.97959%;max-width:96px;">
<table role=presentation width=100% cellpadding=0 cellspacing=0 class=t104><tr>
<td class=t105><div style="font-size:0px;"><img class=t106 style="display:block;border:0;height:auto;width:15%;Margin:0;max-width:25%;" width={image_width} height={image_height} src={image_public_url}></div></td>
Comments about the code:
For those who already have a website, I would recommend to use an image's path from there, it works 100% 😎
Hope this will help you make improvements and create better user experiences. Below are some screenshots from an example. Please feel free to post here any kind of question and any incredible idea for improvements 😊.
Last but not least, in the same way we can embed call to action buttons in Gmail action 😉
Yours sincerely,
Dimitris Goudis
Apr 07, 2023 05:41 AM - edited Apr 07, 2023 05:41 AM
Very cool! 😃🙌 Note that images in both Google Drive and Dropbox (and other cloud storage systems) can be made public, so you can use any cloud storage system that you would like for this.
May 24, 2023 09:56 AM
Been looking for a way to do this for years now. However, my image is not loading.
Do you have any idea what could be?
May 25, 2023 12:54 AM
Jun 19, 2023 09:39 AM
Hey Dimitris!
I've stored in on cloudinary as a png file.
Jun 19, 2023 10:12 PM
Hey @giulia_mg,
You need to use the public url for the asset. Here is the guide from cloudinary. To test if the url is public, you can copy the url from the asset and past it on an incognito browser and see if this search returns the image, if it returns then you have the right url 🙂
In case it doesn't work please post here and it would be pleasure to check case 🙂
Thanks
Jul 19, 2023 07:40 AM
Hey @Dimitris_Goudis
So, I checked and my email signature is public on cloudinary, but still not working.
This is how I'm writting on Airtable automation:
</td><td width=96 valign=top>
<div class=t102 style="display:inline-table;text-align:initial;vertical-align:inherit;width:48.97959%;max-width:96px;">
<table role=presentation width=100% cellpadding=0 cellspacing=0 class=t104><tr>
<td class=t105><div style="font-size:0px;"><img class=t106 style="display:block;border:0;height:auto;width:15%;Margin:0;max-width:25%;" width={image_width} height={image_height} src={https://res.cloudinary.com/duqasmcuv/image/upload/v1684946215/Central_de_Pedidos_gxqpwm.png}></div></td>
Also, not so sure of which height and width would be the best fit...Any sugestion?
Thanks!!!
Jul 21, 2023 03:59 AM
Jul 25, 2023 10:15 AM
Dimitris, this worked great!!
Thank you soo much for all your help!
Aug 01, 2023 11:18 AM - edited Aug 01, 2023 11:23 AM
@Dimitris_Goudis is there a way to link the signature photo? Would like to link the image to my website if possible.