Corrupted e-mail attachment

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.

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?

1 Like