Mail Send Setting using office365, website hosted on local windows server

I’m reading another post that says:

“Found the solution : instead of smpt.office365,com use the .outlook.com smtp server. Find this in the Office365 console. Use port 25, not 587. set to SSL. this will allos intenral dmaon emails to work. Next setup a connected in Office365 to allow external emails from the webservers IP”