SMTP with Microsoft 365 Email Not Working

I’m having trouble using the SMTP automation to send email. I keep getting this error below. I have tried Zapier and it works well with their native MS365 integration. What do I need to do to get it to work in ActivePieces.

ActivePieces ERROR
Connection failed: {“errno”:-3008,“code”:“EDNS”,“syscall”:“getaddrinfo”,“hostname”:“smtp.[domain name].com”,“command”:“CONN”}

Hello @fivestar , Welcome to the community :wave:,

Can you try using a different port with TLS settings and see if it works?