My Experience Building Things and Keeping Them Running.

Menu

exchange server

In this post I’m going to explain how to send mails through Exchange server using the javax.mail package library , which is a bit more tricky than using other mails servers such as gmail.

The authentication part is the most complicated part of all of this, and here is a really interesting tip, if you try it too many times, your account gets locked and you’d not even know till much later, this actually happened with me and I think i wasted about 2 hours going in circles till i figured out that my account was actually locked, i phoned the helpdesk, 10 minutes later my app was sending mails.