![Attaching items and sending email via Groovy in Integrator](https://i0.wp.com/jedox4beginners.com/wp-content/uploads/2024/08/Email-background.png?resize=800%2C420&ssl=1)
Attaching items and sending email via Groovy in Integrator
Hello, dear readers! Today, I want to share with you an important use case that might be very useful in your daily work with Jedox. If you are working with Jedox Integrator and Report Designer, sometimes you need to automate processes to make your work easier and faster. One of these tasks might be copying a file from Report Designer, saving it to your file system, and then sending it as an email attachment. I will show you how to do this using a Groovy script. Let’s imagine a scenario where this might be necessary.
Business Scenario
Let’s say you are working in the finance department of a company, and every month you prepare financial reports using Jedox. These reports could be in different formats, like Excel (XLSX), CSV, or even images like PNG. After preparing these reports, you need to send them to your colleagues or your boss for review.
For example, you generate a monthly sales report in Excel format using...