# Email Report Inline

**URL:** <https://forum.inductiveautomation.com/t/email-report-inline/12275>\
**Category:** Ignition\
**Created:** [October 24, 2016, 5:52pm UTC](https://forum.inductiveautomation.com/t/email-report-inline/12275 "2016-10-24T17:52:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [October 24, 2016, 5:52pm UTC](https://forum.inductiveautomation.com/t/email-report-inline/12275/1 "2016-10-24T17:52:43Z")

</div>

I have some users requesting that a report be emailed inline instead of an attachment. Is there a way to do this? (hopefully without custom scripting)

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 24, 2016, 8:04pm UTC](https://forum.inductiveautomation.com/t/email-report-inline/12275/2 "2016-10-24T20:04:51Z")

</div>

Not sure how much scripting you consider to be custom…

You would have to get the report as a jpg or png with system.report.getBytes(), then construct your email body as html with an image tag that embeds the image. (Either encoding the image as base64 as data in the image tag, or as a link to a content delivery network where you’ve stored the base64 encoding). Then use system.net.sendEmail() to send it out.

---

<div class="post-metadata">

**Author:** ![comaife](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@comaife](https://forum.inductiveautomation.com/u/comaife)\
**Post date:** [August 12, 2019, 5:35pm UTC](https://forum.inductiveautomation.com/t/email-report-inline/12275/3 "2019-08-12T17:35:08Z")

</div>

Kathy,

I have a report that I'd like to send inline as well, this is the base64 encoding for the file generated from  
[Encode Base64 online](http://base64online.org/encode/) . [Output was truncated to fit the forum's character limit]

Is this the type of encoding required to complete the inline report feature, and do I need to generate this encoding each time the report is created?

> data:image/png;base64,i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