I have done mail application sending and receiving. That's working fine. During the mail sending/receiving, If any problem in internet connection, How can I identify the error messages to display in UI Page for user view.
So User can easily identify, Some internet connection problem. I got exception in console only. Is it possible to display internet connection problem error messages to display in UI Pages for Users view.
You'd probably get one of the subclass-exceptions of MessagingException (assuming you're using Transport.send). Why don't you simulate a problem by pulling your network connection before sending, and observe which one it is?