# Embed Images In Emails

**URL:** <https://forum.inductiveautomation.com/t/embed-images-in-emails/67642>\
**Category:** Ignition\
**Tags:** ignition79, ignition80\
**Created:** [December 15, 2022, 1:29am UTC](https://forum.inductiveautomation.com/t/embed-images-in-emails/67642 "2022-12-15T01:29:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WildeKurt](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@WildeKurt](https://forum.inductiveautomation.com/u/WildeKurt)\
**Post date:** [December 15, 2022, 1:29am UTC](https://forum.inductiveautomation.com/t/embed-images-in-emails/67642/1 "2022-12-15T01:29:00Z")

</div>

I would like to embed an image from Image Management into an email's body. I'm thinking this will require encoding it. However, I seem to be stuck as to how to actually get the images data from Image Management. I suppose this is something that will have to be done in the gateway scope. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 15, 2022, 2:38am UTC](https://forum.inductiveautomation.com/t/embed-images-in-emails/67642/2 "2022-12-15T02:38:03Z")

</div>

I haven't tried it, but I imagine html would work.  
Have you tried something like this?:

```auto
<html><img src='http://imagePath/imageName.png'/>

```

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 15, 2022, 3:30am UTC](https://forum.inductiveautomation.com/t/embed-images-in-emails/67642/3 "2022-12-15T03:30:06Z")

</div>

> [@justinedwards.jle](#):
>
> imagine html would work.

Only if the Ignition gateway is public and the email recipient has remote image display enabled.

---

<div class="post-metadata">

**Author:** ![WildeKurt](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@WildeKurt](https://forum.inductiveautomation.com/u/WildeKurt)\
**Post date:** [December 15, 2022, 1:27pm UTC](https://forum.inductiveautomation.com/t/embed-images-in-emails/67642/4 "2022-12-15T13:27:14Z")

</div>

I was kind of looking to embed the image in the email and not provide remote content. Also, I doubt that gateway is public. I know I could store the images as binary in a database but would like to avoid that since they already exist on the gateway.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 15, 2022, 4:15pm UTC](https://forum.inductiveautomation.com/t/embed-images-in-emails/67642/5 "2022-12-15T16:15:48Z")

</div>

You might be able to make an HTTP request to the gateway webserver in your script to get the image data, then encode it into a [data URI](https://en.wikipedia.org/wiki/Data_URI_scheme) to embed inline in your email.
