This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
This kind of logic would need to be part of the client, because the server is not available to do anything. What kind of client are you using - JavaMail? It might be as simple as handling the exception that occurs if the server is not available, and using a different server as the fallback in that case.
Joined: Jul 26, 2005
Yes, I am using JavaMail API. Thanks for your reply. I was thinking on the same line, i.e. catching the Exception, and then use alternate server, if there is an Exception.
But I thought maybe there is some other trick as well (in JavaMail API itself), which I am missing out.