Setting the SMTP configuration for MS Office Outlook in Jasper Server

Posted on by By admin, in Jaspersoft | 2

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.

Grab The 30 Days Free Trail

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

  1. Go to the below location in Jasper installation
    < JASPERSERVER_PATH >\apache-tomcat\webapps\jasperserver-pro\WEB-INF
  2. 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
    
  3. 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 >
    
  4. 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.

    Get your 30 Days Trail Version

  5. Restart the server
  6. Schedule a report from the Jasper server
  7. You should receive an email

Thank You,
Ramu
Helical IT Solutions Pvt Ltd

logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

0 0 votes
Article Rating
Subscribe
Notify of
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

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.