# Is it possible to include SQL data in the email body?

**URL:** <https://forum.inductiveautomation.com/t/is-it-possible-to-include-sql-data-in-the-email-body/102612>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 20, 2025, 7:41am UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-include-sql-data-in-the-email-body/102612 "2025-02-20T07:41:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [February 20, 2025, 1:24pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-include-sql-data-in-the-email-body/102612/2 "2025-02-20T13:24:39Z")

</div>

I would format the dataset as a string and append it to the email body.

[Here](https://forum.inductiveautomation.com/t/view-dataset-from-script-console/36704/4) is a link to a print dataset function written by @JordanCClark that you could modify for your requirements. You could use html formatting to get newlines etc., ie `<html>header<br>row1<br>row2</html>`

---

_[View the full topic](https://forum.inductiveautomation.com/t/is-it-possible-to-include-sql-data-in-the-email-body/102612)._
