Finally I could able to configure second mail in my application. Below shows the config and code

<bean id="bulkMailer" class="com.akshay.utils.BulkMailer2">
        <property name="mailSender" ref="mailSender"/>
        <property name="secondMailSender" ref="secondMailSender"/>

 public class BulkMailer2 implements Mailer {
        private JavaMailSender mailSender;
        private JavaMailSender secondMailSender;
        public void setSecondMailSender(JavaMailSender secondMailSender) {
            this.secondMailSender = secondMailSender;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top