How to configure mail server settings in JasperReports Server 4.0.0

Sharad picture Sharad · Mar 9, 2012 · Viewed 11.8k times · Source

I'm using JasperReports Server 4.0.0 and I want how to configure mail server settings to mail the reports by report scheduling.

How I can do that? Does anyone know this?

Answer

Alex K picture Alex K · Mar 9, 2012

You should edit the <app-server>/<deployment>/WEB-INF/js.quartz.properties configuration file.

The quote from the JasperReports Server Community Project Installation Guide (6.4.1 Mail Server Configuration Settings ).

  • report.scheduler.mail.sender.host - The name of the computer hosting the mail server
  • report.scheduler.mail.sender.username - The name of the user in the mail server that JasperReports Server can use
  • report.scheduler.mail.sender.password - The password of the mail server user
  • report.scheduler.mail.sender.from - The address that appears in the From field on email notifications
  • report.scheduler.mail.sender.protocol - The protocol that the mail server uses. JasperReports Server only supports SMTP. Note: Your entry must be lower case. For example: smtp
  • report.scheduler.mail.sender.port - The port number that the mail server uses. For SMTP, the default is typically 25 (values other than 25 may not work in earlier JasperServer versions)