I currently have the following content under my mail-config.xml in my Spring MVC app, but I want to load this parameters from an external file placed ie in /var/etc/myconfig/mail-config.txt, is that possible?
I'm specially interested in placing the host and auth credentials for the smtp server, thanks
mail-config.xml
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="smtp.example.com" />
<property name="port" value="25" />
<property name="defaultEncoding" value="UTF-8" />
<property name="javaMailProperties">
<props>
<prop key="mail.mime.charset">UTF-8</prop>
</props>
</property>
</bean>