Logic Machine Forum
E-mail backup file - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: E-mail backup file (/showthread.php?tid=396)

Pages: 1 2 3


RE: E-mail backup file - manos@dynamitec - 09.12.2022

(08.12.2022, 07:35)admin Wrote: Use this:
Code:
to = { 'user1@example.com', 'user2@example.com', 'user3@example.com' }

for index, email in ipairs(to) do
  to[ index ] = '<' .. tostring(email) .. '>'
end

--Create e-mail header
settings.source = smtp.message{
headers = {
  from = '' .. alias_from .. ' ' .. from .. '',
  to = table.concat(to, ', '),
  subject = subject
},

Thank you Admin. Worked perfectly as always Smile.