19.01.2023, 08:15
You can put multiple emails into to table but set the "to" header only to the first recipient:
Code:
settings.source = smtp.message({
headers = {
to = to[ 1 ],
subject = subject,
['From'] = from,
['Content-type'] = 'text/html; charset=utf-8',
},
body = message
})