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

SA-27160

Summary



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:
               java.net.ConnectException: A remote host refused an attempted connect operation.
               at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
               at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
               at javax.mail.Service.connect(Service.java:288)
               at javax.mail.Service.connect(Service.java:169)
               at com.pegarules.generated.SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.SendEmailMessage07_10_15(SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.java:713)
               at com.pegarules.generated.SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.invoke(SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw.java:87)
               at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133)
               at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110)
               at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:8786)
               at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
               at com.pegarules.generated.pega_integrationengine_default.SendEmailMessage(pega_integrationengine_default.java:152)
               at com.pegarules.generated.activity.ra_action_sendemailnotification_68866db51912c270f78c29e148aa5c65.step6_circum0(ra_action_sendemailnotification_68866db51912c270f78c29e148aa5c65.java:862)
               at com.pegarules.generated.activity.ra_action_sendemailnotification_68866db51912c270f78c29e148aa5c65.perform(ra_action_sendemailnotification_68866db51912c270f78c29e148aa5c65.java:167)
               at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3375)
               at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10450)
               at com.pegarules.generated.activity.ra_action_sendemailnotificationwithattachments_7bf9607b6e83ca9d819be6de59bb250d.step1_circum0(ra_action_sendemailnotificationwithattachments_7bf9607b6e83ca9d819be6de59bb250d.java:164)
               at com.pegarules.generated.activity.ra_action_sendemailnotificationwithattachments_7bf9607b6e83ca9d819be6de59bb250d.perform(ra_action_sendemailnotificationwithattachments_7bf9607b6e83ca9d819be6de59bb250d.java:69)
               at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3375)
               at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10450)

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.

Resolution



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