<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Embed image in html email</title><link>https://community.appian.com/discussions/f/rules/29968/embed-image-in-html-email</link><description>1. Interface upload image 
 2. second interface use document viewer to display image. Pulling image by document ID 
 a!documentViewerField( label: &amp;quot;Laboratory test results image&amp;quot;, document: ri!svcRequest.lab_images, altText: &amp;quot;5 Digital Transformation</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Embed image in html email</title><link>https://community.appian.com/thread/118995?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 18:11:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c5985e7-dcfe-493f-8d38-7eb763dc648f</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="59361" url="~/discussions/f/rules/29968/embed-image-in-html-email/118992#118992"]community.appian.com/.../98445[/quote]
&lt;p&gt;Correct thread, though I would link to &lt;a href="/discussions/f/process/19489/image-in-email-body/76218#76218"&gt;this comment&lt;/a&gt; instead &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f609.svg" title="Wink"&gt;&amp;#x1f609;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Embed image in html email</title><link>https://community.appian.com/thread/118993?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 18:08:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e53dee7-0f4c-4de6-8cc7-cb50742f8b40</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="3520" url="~/discussions/f/rules/29968/embed-image-in-html-email/118982#118982"]points at a server where the image is hosted[/quote]
&lt;p&gt;This is not all the way true.&amp;nbsp; It is possible and relatively simple to use HTML to embed an image that the email contains as an attachment.&amp;nbsp; This solution has been posted here before probably several different times.&amp;nbsp; I&amp;#39;m about to search it out and link it.&lt;/p&gt;
&lt;p&gt;Edit: thanks Stefan, &lt;a href="/discussions/f/process/19489/image-in-email-body/76218#76218"&gt;here&amp;#39;s&lt;/a&gt; at least one of the old threads.&amp;nbsp; Linking directly to my comment where I posted the exact HTML and instructions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Embed image in html email</title><link>https://community.appian.com/thread/118992?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 18:08:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28522a7d-a390-48f4-a5ee-9e554416b36e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a href="https://community.appian.com/discussions/f/process/19489/image-in-email-body/98445#98445"&gt;community.appian.com/.../98445&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Embed image in html email</title><link>https://community.appian.com/thread/118989?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 17:43:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c1d76d6-ce04-4638-9ad3-9564b7e3354e</guid><dc:creator>oludareo0002</dc:creator><description>&lt;p&gt;What would I pass in for the src of the image that would allow it to grab uploaded document?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Embed image in html email</title><link>https://community.appian.com/thread/118988?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 17:36:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4cf0fdc3-7791-41bc-b896-c48c942369c8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You cannot use Appian UI components in email. You need to use pure HTML code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Embed image in html email</title><link>https://community.appian.com/thread/118987?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 17:24:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ebef3f9-e7ba-48cb-b062-558eb2fa593c</guid><dc:creator>oludareo0002</dc:creator><description>&lt;p&gt;=a!documentViewerField(pv!svcRequest.lab_images)&lt;br /&gt;&lt;br /&gt;I tried this by passing in ### image ### in email template&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I got this response&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;[@attributes=, contents=[@attributes=, disabled=, documentUrl=https://cdernexusdev.static.fda.gov/suite/rest/a/content/latest/docview/jA0ECQMCV4K8lBQbEMIB0n0B_AmlOwvFSndODlPVPg6vqEQTqU8fE6L5yrVlWLJDHAQrfh-q21WHJtVXWuMaB4Nk8oYlRro0pV3fI40lDu9kH2wezuHWuTm3tFW4tV33kFxP9_MMr4W_5Sa90jecdhvTz1zp2WCVzzcdfb9ZzAZ6OvAHdR7EbOuFb5xVbw, documentId=612916, height=, altText=, validDomain=true, actions=], label=, labelPosition=, instructions=, instructionsPosition=ABOVE, helpTooltip=, requiredStyle=, skinName=, actions=, marginBelow=, accessibilityText=, marginAbove=, helpTooltipPosition=]&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So I tried wraping it with &amp;lt;img&amp;gt; tag and change code to&amp;nbsp;&lt;br /&gt;&lt;br /&gt;=a!documentViewerField(&amp;nbsp; document: pv!svcRequest.lab_images)&lt;br /&gt;&lt;br /&gt;but got a black response in the email&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What would you recommend?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Embed image in html email</title><link>https://community.appian.com/thread/118982?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 16:33:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eeb3e9ad-6826-430d-a40c-b546ecc4bd35</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;If you want an email to contain an image then you need to add the relevant HTML tag which usually points at a server where the image is hosted. The email application, when it loads&amp;nbsp;the email, parses the HTML and fetches the document from said server.&lt;/p&gt;
&lt;p&gt;So in your Appian solution if you&amp;#39;re uploading a document you need to push it to the server that will host it and get a &amp;quot;handle&amp;quot; to it that you can then embed in the email&amp;#39;s HTML.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Embed image in html email</title><link>https://community.appian.com/thread/118979?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 15:58:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9bbab422-9bd1-4e3c-8741-61c0c177578d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m pretty sure I&amp;#39;ve posted a solution for this exact use case in a past comment.&amp;nbsp; It might take some tricky searching to find, but you should be able to find it.&amp;nbsp; It will have nothing to do with &amp;quot;document viewer field&amp;quot;, since that component is relevant &lt;em&gt;only&lt;/em&gt; to in-Appian interfaces.&amp;nbsp; The email solution relies purely on HTML.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>