05.05.2023, 07:22
(05.05.2023, 07:14)admin Wrote: Change secure = 'sslv23', to secure = 'tlsv1_2',Forget to mention that I changed this part
headers = {
from = "sed <xxx>",
to = "Rcpt Name <xxx>",
subject = "Report"
},
body = {
[1] = {
headers = { ['Content-type'] = 'text/html' },
body = htmldata
},
}
}
r, e = smtp.send{
rcpt = "<xxx>" ,
from = '<xxx>',
source = ltn12.source.chain(source, filter),
user = 'xxx',
password = 'xxx',
server = 'smtp.office365.com',
port = 587,
secure = 'tlsv1_2',
}