24.07.2025, 07:33
Add this before return smtp.send(settings) to log all SMTP communication and post what you get in Logs:
Code:
settings.create = function()
local sock = socket.tcp()
return {
settimeout = function(_, ...)
return sock:settimeout(...)
end,
connect = function(_, ...)
return sock:connect(...)
end,
close = function(_, ...)
return sock:close(...)
end,
receive = function(_, ...)
local res, err, partial, time = sock:receive(...)
log('receive', res, err, partial)
return res, err, partial, time
end,
send = function(_, ...)
log('send', ...)
return sock:send(...)
end
}
end