This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

E-mail backup file
#41
(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.
Reply


Forum Jump: