I have an image-type column that contains an SVG. What would be the way to insert it into HTML code that is the body of an email?
Is it possible to send an SVG image by email?
One little easier but not so elegant option is you could try the SNAPSHOT(0 function on the SVG image. The image could be in a detail view with just image as the main image of the detail view and you could use LINKTOFILTEREDVIEW() in the SNAPSHOT() function to include that detail view with a single image.
Example of email body below created and sent through bot below: The image with blue color is an SVG image in a detail view with a single image column (and of course the key column as one cannot have a view without key column) . The detail view is rendered through the SNAPSHOT() function in the email body template.
The SNAPSHOT() function is as below in the template.
<<SNAPSHOT(LINKTOFILTEREDVIEW("Customers_detail", ([Name] = [_THISROW].[Name])))>>
Will post back, if there is any more elegant option.
Yes, I had considered SNAPSHOT() as an option, but I don't like it much because the bottom bar as well as the top bar with the menu appear. Additionally, it loses the definition that an SVG could have, as well as other functions, for example, a tooltip.
In any case, I appreciate your response as I believe it could definitely be used for other cases.
You are welcome. Yes, with SNAPSHOT() it is not all that elegant.
Could you share if possible for what purpose you would like to use the SVG images in Email body?
We could possibly try some alternatives if feasible. Of course these alternatives are not based on SVG but normal PNG/JPEG images.
At the moment I don't have a specific purpose for the svg in the body of the email, I was just exploring ideas to see what options are feasible and apparently including svg in the body of the email is not possible ๐
It would be very convenient to be able to include svg in the body of the email because many of us already use svg in appsheet to display information in a way that is visually pleasing, in addition the svg language is more than compatible with html so I intuitively thought that svg in the body of the email would be easy to implement.
I have several svg with animation so another way of representing the image would not be able to reproduce the animation. I also have svg with tooltips which are not displayed in appsheet but when opening the image in a new tab they can be displayed (I think they could also be seen in an email).
Thank you for the update. Understood your requirement. I am planning to post as tip an option of including elegant images in email with AppSheet app data on them. However those will not be SVG images but normal .PNG or ,JPEG images.
Hi @Kabuliรฑo
@Kabuliรฑo wrote:
What would be the way to insert it into HTML code that is the body of an email?
Did you consider using a Google Docs/Microsoft Word template? You can refer to the svg image built using the usual syntax.
For reference:
Display images, thumbnails, drawings, and signatures in templates - AppSheet Help
User | Count |
---|---|
18 | |
14 | |
11 | |
7 | |
4 |