Jasper Ideas

Automatic Retry Mechanism for SMTP Connection Failures in Scheduled Email Notifications

We would like to request an enhancement to JasperReports Server to support an automatic retry mechanism for SMTP connection failures during scheduled email delivery.

Currently, if the initial SMTP connection attempt fails due to a transient network issue or a temporary SMTP server timeout (for example, a java.net.SocketTimeoutException during javax.mail.Service.connect()), the scheduled job is marked as failed without retrying the connection.

In production environments, intermittent network or SMTP connectivity issues can occasionally affect a single connection attempt while other scheduled jobs continue to send emails successfully. A configurable retry mechanism would help improve the reliability of scheduled email delivery and reduce failures caused by temporary communication issues.

Suggested enhancement:

  • Allow administrators to configure the number of SMTP connection retry attempts.

  • Allow configuration of the delay between retry attempts.

  • Retry only for transient connection-related exceptions (for example, connection timeouts or temporary network failures).

  • Log each retry attempt and the final outcome for troubleshooting purposes.

  • Preserve the existing behavior when retries are disabled.

This enhancement would improve the robustness of scheduled email delivery and help mitigate intermittent SMTP connectivity issues without requiring manual intervention.

  • Nagarajan M
  • Jul 7 2026
  • To be Reviewed
Components JasperReports Server
  • Attach files