# Export dataset to CSV and send as email attachment

**URL:** <https://forum.inductiveautomation.com/t/export-dataset-to-csv-and-send-as-email-attachment/36529>\
**Category:** Ignition\
**Created:** [July 9, 2020, 9:39am UTC](https://forum.inductiveautomation.com/t/export-dataset-to-csv-and-send-as-email-attachment/36529 "2020-07-09T09:39:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [July 9, 2020, 12:03pm UTC](https://forum.inductiveautomation.com/t/export-dataset-to-csv-and-send-as-email-attachment/36529/3 "2020-07-09T12:03:27Z")

</div>

I don’t think your suggestion will work since sendEmail() requires byte data.

@jmacascas, have a look at this: [Email with Excel file Attached without prompting](http://forum.inductiveautomation.com/t/email-with-excel-file-attached-without-prompting/7758)

---

_[View the full topic](https://forum.inductiveautomation.com/t/export-dataset-to-csv-and-send-as-email-attachment/36529)._
