@James_79
I've done my trial on a laptop with a local SAS installed. When I've executed the code then my antivirus software prompted me that an application is trying to send an email.
So just as an idea: May be when using Lua some antivirus software in your environment blocks the the file - but when using SAS directly then things get through.
... View more