File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Configuring Email Sending with Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Configuring Email Sending with Spring" Watch "Configuring Email Sending with Spring" New topic

Configuring Email Sending with Spring

Kunal Bhatia

Joined: Aug 28, 2009
Posts: 11
Hello All,

Iam trying to implement Email functionality in my project with Spring Bean Injection here is my code

My concern is I have to implement a functionality in which , if there is a failover destination i.e a fallback from the default SMTP host, then it should try to retrieve the next smtp host value from the list of SMTP host listed somewhere be it properties file ..etx

if the default SMTP host is
and the mail is a fallback from this SMTP host then it should go to the next host like:

How to implement this:

Thank in advance.
I agree. Here's the link:
subject: Configuring Email Sending with Spring
It's not a secret anymore!