Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
5 replies
Subscribers
8 subscribers
Views
5155 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Embedding an image in a html template email
pieterk
A Score Level 1
over 7 years ago
Hi Guys
I would like to embed an image in a html template email, similar to how outlook does it. Is there a way to achieve this.
Thanks
OriginalPostID-240000
Discussion posts and replies are publicly visible
0
Carlos Santander
A Score Level 2
over 7 years ago
When you save an Outlook message as HTML, it saves the images in a folder it creates alongside the HTML file. If that's what you mean, you'd need to create the necessary <img> tags that point to your images.
Outlook also can save messages in a single MHT file, which is similar to the contents of a multipart email. I'm not sure if that's what you mean, instead. You'd need to base-64 encode the image and embed it in the MHT file.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
pieterk
A Score Level 1
over 7 years ago
Hi Carlos
I need to generate the email from an Appian process model. I'm currently using a HTML template and the email smart service. I need to embed and image in the email and then send it. I would like it to display properly when someone reads the email. I know that this can be done in java or c#, but i have not figured out how to do this in Appian.
I have managed to add an image that basically has a url that load the image when you view the image, but this is not great as outlook by default does not load external content.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Carlos Santander
A Score Level 2
over 7 years ago
I did a quick test and it seems like Appian will simply process an MHT template as text, so Outlook won't display it correctly. Since you already have Java code that does what you need, you could wrap that code in an Appian plugin.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rajashekarv
over 7 years ago
Try to have the base 64 value of the image in the html template , that should render the image on the email properly
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mrudulaj
over 7 years ago
AFAIK, Appian cannot pick the images from the document repository, so in our scenario we have saved the images in the application server and called that image src in our HTML template. Hope this would help.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel