26.01.2023, 10:33
Try changing the msgt variable to this:
to is already escaped using <> in the script
Code:
msgt = {
headers = {
to = to,
['content-type'] = 'text/csv',
['content-disposition'] = 'attachment; filename="logs.csv"',
['content-transfer-encoding'] = '7BIT',
subject = subject,
},
body = ltn12.source.string(csv)
}
to is already escaped using <> in the script