This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Configuring Email Sending with Spring
Similar Threads
sending emil with spring mail abstact layer
how to detect a firewall
Can we attach multiple email addresses through spring email
Sending email from java. Pls Help!!!
Problem at sending email