16.02.2024, 08:59
The code in the example was incorrect. From header must be placed together with to and subject:
If needed, you can add a name before < in the header so it's displayed together with the email address.
Code:
settings.source = smtp.message({
headers = {
to = table.concat(to, ', '),
subject = subject,
From = '<' .. tostring(settings.from) .. '>',
},
...
If needed, you can add a name before < in the header so it's displayed together with the email address.