# Corrupted e-mail attachment

**URL:** <https://forum.inductiveautomation.com/t/corrupted-e-mail-attachment/112805>\
**Category:** Ignition\
**Created:** [December 15, 2025, 1:18am UTC](https://forum.inductiveautomation.com/t/corrupted-e-mail-attachment/112805 "2025-12-15T01:18:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hefin\_Price](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@Hefin\_Price](https://forum.inductiveautomation.com/u/Hefin_Price)\
**Post date:** [December 15, 2025, 1:18am UTC](https://forum.inductiveautomation.com/t/corrupted-e-mail-attachment/112805/1 "2025-12-15T01:18:51Z")

</div>

I set up a function last year to send an e-mail once a task has been completed.

It would create a report attach it to an e-mail and send to a recipient responsible for the task.

It’s worked flawlessly until we upgraded to ignition 8.3.

Now, all attachments send from the client are unable to be opened.

I have another scheduled report that gets sent every Monday morning which still appears to work as intended.

If I run the following from the script console the attachment is corrupted but if I run it as a gateway event it works fine.

```python
attName = ['Department'+ ' ' + "Weely Report.pdf"]
attByte = [system.report.executeReport(path="WeeklyReport", project="CMMS", parameters={'Dpt':'Department'}, fileType="pdf")]
	
system.net.sendEmail(smtp, fromAddr, subject, body, html, recipients, attName, attByte,)

```

Does anyone have any idea why this works from the gateway but not from a client based script anymore?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 15, 2025, 3:21am UTC](https://forum.inductiveautomation.com/t/corrupted-e-mail-attachment/112805/2 "2025-12-15T03:21:10Z")

</div>

> [@\[IGN-14996\]8.3 net.sendEmail attachments not functioning as expected](https://forum.inductiveautomation.com/t/ign-14996-8-3-net-sendemail-attachments-not-functioning-as-expected/112427/8):
>
> Well for posterity, my hunch is that the attachment data is gzipped and then base64 encoded on the client side but only base64 decoded once it reaches the gateway - the unzipping got lost somewhere in the RPC overhaul. @paul-griffith
