js.quartz.properties and applicationContext-report-scheduling configuration to use gmail

0

Hello,

I js.quartz.properties and applicationContext-report-scheduling configured but can not receive mail

here's what I did:

jasperreports-server-cp-6.01\\apache-tomcat\\webapps\\jasperserver-pro\\WEB-INF\\js.quartz.properties

report.scheduler.mail.sender.host=smtp.gmail.com

report.scheduler.mail.sender.username=username@gmail.com

report.scheduler.mail.sender.password=SECRET

report.scheduler.mail.sender.from=username@gmail.com

report.scheduler.mail.sender.protocol=smtps

report.scheduler.mail.sender.port=465

jasperreports-server-cp-6.01\\apache-tomcat\\webapps\\jasperserver-pro\\WEB-INF\\applicationContext-report-scheduling.xml

<bean id="reportSchedulerMailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
        <property name="host" value="${report.scheduler.mail.sender.host}"/>
        <property name="username" value="${report.scheduler.mail.sender.username}"/>
        <property name="password" value="${report.scheduler.mail.sender.password}"/>
        <property name="protocol" value="${report.scheduler.mail.sender.protocol}"/>
        <property name="port" value="${report.scheduler.mail.sender.port}"/>
        <property name="javaMailProperties">
            <props>
                <prop key="mail.smtps.auth">true</prop>
                <prop key="mail.smtps.starttls.enable">true</prop>

            </props>
        </property>
    </bean>

Thank you

christian.lach.91's picture
Joined: May 29 2015 - 3:30am
Last seen: 5 years 4 days ago

0 Answers:

No answers yet
Feedback
randomness