Hi Spring team,
I am trying to create multiple host entries in the config file for org.springframework.mail.javamail.JavaMailSenderIm pl so I can build in redundancy into my application, my current settings are as follows:
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailS enderImpl">
<property name="host">
<value>mailhost2.server.com</value>
</property>
<property name="host">
<value>mailhost.server.com</value>
</property>
</bean>
Unfortunately when I try to send mails now they will only be forwarded from mailhost2. How can I configure the application to send them using both?


Reply With Quote