In Jasper we have functionality to distribute the reports to the Users, to do this we need to configure email server details.
Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.
Here we are updating the configuration for Microsoft Office Outlook account as email server. To use the MS outlook account we need to do two more configuration changes in application files.
Follow the below steps for setting the STMP details in Jasper Server
- Go to the below location in Jasper installation
< JASPERSERVER_PATH >\apache-tomcat\webapps\jasperserver-pro\WEB-INF
- Open js.quartz.properties file and update the following properties
report.scheduler.mail.sender.host=< MAIL_HOST > report.scheduler.mail.sender.username=< MAIL_USER > report.scheduler.mail.sender.password=< MAIL_PWD > report.scheduler.mail.sender.from=< MAIL_FROM > report.scheduler.mail.sender.protocol=smtp report.scheduler.mail.sender.port=< MAIL_PORT > report.scheduler.mail.smtp.starttls.enable=true report.scheduler.mail.smtp.auth=true
- Open applicationContext.xml file and update the following properties for the property ‘javaMailProperties’ under the bean id ‘mailSenderService’
< property name="javaMailProperties"> < props > < prop key="mail.smtp.auth" >true< / prop> < prop key="mail.smtp.sendpartial" >true< / prop> < prop key="mail.smtp.starttls.enable" >true< / prop > < / props > < / property >
- Open applicationContext-report-scheduling.xml file and update the following properties for the property ‘javaMailProperties’ under the bean id ‘reportSchedulerMailSender’
< property name="javaMailProperties" > < props > < prop key="mail.smtp.sendpartial" >true< / prop> < prop key="mail.smtp.auth" >true< / prop> < prop key="mail.smtp.starttls.enable" >true< / prop> < / props> < / property >
Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool. - Restart the server
- Schedule a report from the Jasper server
- You should receive an email
Thank You,
Ramu
Helical IT Solutions Pvt Ltd
Best Open Source Business Intelligence Software Helical Insight is Here
Thank You for the solution it really works
It didn’t work ln my end, logs message shows that the server is able to connect to the email host “smtp.microsoft365.com” but “Failed to meet the criteria”. Please advice.