SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to use outlook with Javamail API then use
Javamail API
smtp-mail.outlook.com
as a host for more and complete working code Check out this answer.