Jump to content
Changes to the Jaspersoft community edition download ×

Suddenly Jasper stopped sending email reports


Recommended Posts


I am using Jasperreports CE 8.2.0. I have created around 750 schedules that will send reports to multiple customers on early morning hours, 3:00 AM - 5:00 AM. I am using Sendgrid as mail service. Everything was working fine till Monday, 03/07/2023. On Monday morning around 8:00 AM, I noticed that no emails were sent for that day. I switched my connection from Sendgrid to Mailgun and suddenly all the emails were send.

To debug the issue, I contacted Sendgrid and they told me there were no SMTP connections from my end during that period. I also checked the jasperserver.log file and strangely, there were no logs during 3:00 AM - 5:00 AM. There were logs for the emails send using Mailgun though. Then I tried to send a mail with Sendgrid using telnet and it went successfully. Later I again switched from Mailgun to Sendgrid and tested sending emails, it was also working fine then.

Below is my SMTP settings from js.quartz.properties



Please advice what could be the possible reasons for this issue?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic


It is really hard to tell any reason behind this strange behavior, as the SendGrid configuration worked after connecting via it without doing anything.

If the issue is with sendgrid connection then it should reflect in the jasperserver.log file anyhow without this seeing the log file it is really hard to say anything.

If in the future if in case if you come across this issue then try with the restart of the jasperserver if possible if the log is not present in log file, but it usually it traces the error .

I hope this will help you, thanks!

Link to comment
Share on other sites


I have not still figure out why this issue happened. I had enabled logging for below classes in jasper log settings:
org.springframework.mail.javamail DEBUG
org.springframework.mail.javamail.JavaMailSenderImpl DEBUG

Also added below logging in log4j2 properties file:

Still nothing related to emails are logged to log files.

Finally I added 

<prop key="mail.debug">true</prop>

to the applicationContext-report-scheduling.xml file. Thereafter, SMTP logs are coming to catalina.out file. I hope whenever this issue happens next, I can analyse the logs and sort out the issue.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...