Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Sending report through Email Notification



Scheduled report tasks is not sending email notification failing with the Messaging exception.

Error Messages

2016-08-08 04:35:14,847 [   WebContainer : 16] [TABTHREAD4] [                    ] [        ] (pega_integrationengine_default) ERROR  315888933 - Unexpected exception caught while trying to send an email message.
javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
  nested exception is:
      A remote host refused an attempted connect operation.
               at com.sun.mail.smtp.SMTPTransport.openServer(
               at com.sun.mail.smtp.SMTPTransport.protocolConnect(
               at javax.mail.Service.connect(
               at javax.mail.Service.connect(
               at com.pegarules.generated.SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.SendEmailMessage07_10_15(
               at com.pegarules.generated.SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.invoke(
               at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(
               at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(
               at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(
               at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(
               at com.pegarules.generated.pega_integrationengine_default.SendEmailMessage(
               at com.pegarules.generated.activity.ra_action_sendemailnotification_68866db51912c270f78c29e148aa5c65.step6_circum0(
               at com.pegarules.generated.activity.ra_action_sendemailnotification_68866db51912c270f78c29e148aa5c65.perform(
               at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
               at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(
               at com.pegarules.generated.activity.ra_action_sendemailnotificationwithattachments_7bf9607b6e83ca9d819be6de59bb250d.step1_circum0(
               at com.pegarules.generated.activity.ra_action_sendemailnotificationwithattachments_7bf9607b6e83ca9d819be6de59bb250d.perform(
               at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
               at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(

Steps to Reproduce

1. Go to Designer Studio >Reporting >Access > Report Browser >Schedule a report for email notification.
2. Go to Designer Studio>Reporting >Components >Scheduled Tasks> Run Immediately.

Root Cause

The root cause for this issue is default email account is configured with the Host(SMTP) server as localhost and port number as 25.


Configure the default email account with correct SMTP server, port number,  along with user id and password to resolve the issue.

Published September 15, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us