28.04.2023, 06:20
(14.04.2023, 11:37)admin Wrote: Try running this script. If you still get connection refused error then contact Microsoft and ask why your connection is blocked.The problem is solved, port 587 was blocked by the firewall
Code:sock = require('socket').tcp()
sock:settimeout(5)
res, err = sock:connect('smtp.office365.com', 587)
sock:close()
log(res, err)