Skip to main content
December 1, 2021
Question

Image is not showing in the email when I use html template.

  • December 1, 2021
  • 5 replies
  • 0 views

Hi,

I have uploaded an image using "Document" object under the folder "AT_Images"

Now, I have created an HTML template which I am using to send an email using Send Email smart service.

When I use below code in the .html template document, there were no image in the actual email which I have received.

<img src="AT_Images\companylogo.jpg"></img>

Can some throw some idea on this.

5 replies

mikes0011
Brainy
December 1, 2021

I think this has been discussed in previous threads - search around some and i think you might find at least one or two threads where the exact required syntax is reproduced.  However the one thing that sticks out about this is - I'm not sure why you think the folder "AT_Images" is relevant; if you're attaching the image file to the email, it will not be in *any* folder, and thus it would not have any folder referenced when you refer to it in your "<img src=" tag.

The Expression Guru
December 1, 2021

I have designed the template like below and referred the image as cons!AT_COMPANYLOGO then also no luck.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<style>
table, th, td { border: 0px solid black; border-collapse: collapse;}
</style>
</head>
<body>
<Table>
<TR><TD>###employeeid###</TD></TR>
<TR><TD><image src="###image###"></img></TD></TR>
</Table>
</body>
</html>

mikes0011
Brainy
December 1, 2021

Please see this thread for details on how to accomplish this.

The Expression Guru
csteward
December 1, 2021

I haven't played around with this fully yet, but in one or two cases where we've had to attach images in HTML templates I know we've uploaded the image to our server directly (typically a logo used in the template, etc), then included the full server URL to the image.  We are on prem however, and are likely better solutions out there..