Issue
Unsure what options are available in the Lua smtp.send() function.
Product Line
EcoStruxure Building Expert
Environment
SmartStruxure Lite Multi-Purpose Manager (MPM)
Cause
The Lua smtp.send() function is not fully documented.
Resolution
The syntax of the smtp.send() function is:
smtp.send { from = string, rcpt = string or string-table, source = LTN12 source, [server = string,] [user = string,] [password = string,] [port = number,] [domain = string] } |
From above you can see that the "from", "rcpt" and "source" fields are required. Whilst "server", "user", "password", "port" and "domain" fields are optional.
Example Lua code is:
--==============================================================================
--[[ |