SMTP0002: Connection reset while sending mail

Pega Predictive Diagnostic Cloud™ (PDC) creates an SMTP0002 event when an application connects to an SMTP server while sending emails, and the connection is interrupted.

Reason for the event

When Pega Platform™ connects to an SMTP server to send emails, but the connection is reset, Pega Platform generates a Connection reset exception. PDC recognizes this exception and generates an SMTP0002 event and a corresponding case to track the occurrence of similar exceptions. You can receive a notification for each occurrence of this event.

Example message text

at com.sun.mail.util.SocketFetcher.createSocket(
at com.sun.mail.util.SocketFetcher.getSocket(
at com.sun.mail.smtp.SMTPTransport.openServer(
2018-01-24 09:16:24,254 [jp-bio-8009-exec-680] [TS/$NewApp] [ SSTS:02.07.01] (arules.generated.tfnsw_default) ERROR| Pega_webservice - Unexpected exception caught while trying to send an email message.
javax.mail.MessagingException: Exception reading response; nested exception is: Connection reset at com.sun.mail.smtp.SMTPTransport.readServerResponse(
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_030101_ylD29e0oJGDaVFj4eWLqxg.SendEmailMessage03_01_01(
at com.pegarules.generated.SendEmailMessage_030101_ylD29e0oJGDaVFj4eWLqxg.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 org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.valves.AccessLogValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.ajp.AjpProcessor.process(
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
Caused by: Connection reset at
at com.sun.mail.util.LineInputStream.readLine(
at com.sun.mail.smtp.SMTPTransport.readServerResponse(

Recommended next steps

To resolve the issue with connection reset, contact the appropriate resources to check the status of the email server and the network connectivity between your application and your email server. When you are sure that connectivity and functionality have been restored, resolve the case in PDC.

Suggest Edit

Related Content

Have a question? Get answers now.

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