LinkedIn
Copied!

SMTP0003: Email sending failure

Pega Predictive Diagnostic Cloud™ (PDC) generates an SMTP0003 event when an application cannot send emails and the email client generates an exception.

    Reason for the event

    PDC generates the SMTP0003 event in the following situations:

    • Authentication credentials for the SMTP server are incorrect or have expired.
    • An application cannot connect to the email client – the host has sent the 421 response code, which implies that your message was temporarily deferred by the recipient server.
    • An application cannot send emails – the SMTP server responded with the 451 response code and sending a message failed.
    • An application cannot send emails – the SMTP server responded with the 454 response code (Temporary service failure).

    Example message text

    [MSG][Failed to send email][STACK][com.pega.platform.integrationcore.client.email.EmailClientException: Unable to connect email client due to : Could not connect to SMTP host: smtp.mailgun.org, port: 587, response: -1
    at com.pega.platform.integrationcore.client.email.internal.javamail.JavaEmailClient.connect(JavaEmailClient.java:262)
    at com.pega.platform.integrationengine.client.email.internal.PegaEmailClientImpl.sendEmail(PegaEmailClientImpl.java:108)
    at com.pegarules.generated.pxSendEmail_080101_8831695322219000742.pxSendEmail08_01_01(pxSendEmail_080101_8831695322219000742.java:111)
    at com.pegarules.generated.pxSendEmail_080101_8831695322219000742.invoke(pxSendEmail_080101_8831695322219000742.java:72)
    at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:222)
    at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:119)
    at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:9329)
    at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflectionWithException(LibrarySupport.java:275)
    at com.pegarules.generated.activity.ra_action_sendemailnotification_6f3d278e519e75d7a79db38e4bfdec79.step1_circum0(ra_action_sendemailnotification_6f3d278e519e75d7a79db38e4bfdec79.java:219)
    at com.pegarules.generated.activity.ra_action_sendemailnotification_6f3d278e519e75d7a79db38e4bfdec79.perform(ra_action_sendemailnotification_6f3d278e519e75d7a79db38e4bfdec79.java:72)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)
    at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961)
    at com.pegarules.generated.activity.ra_action_emailscorecardtoaddress_95d86720e58a1614cc5473ee9c9ba456.step3_circum0(ra_action_emailscorecardtoaddress_95d86720e58a1614cc5473ee9c9ba456.java:401)
    at com.pegarules.generated.activity.ra_action_emailscorecardtoaddress_95d86720e58a1614cc5473ee9c9ba456.perform(ra_action_emailscorecardtoaddress_95d86720e58a1614cc5473ee9c9ba456.java:115)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)
    at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961)
    at com.pegarules.generated.activity.ra_action_emailscorecard_8110bd33dc8075f0364c11675e05032e.step28_circum0(ra_action_emailscorecard_8110bd33dc8075f0364c11675e05032e.java:2157)
    at com.pegarules.generated.activity.ra_action_emailscorecard_8110bd33dc8075f0364c11675e05032e.perform(ra_action_emailscorecard_8110bd33dc8075f0364c11675e05032e.java:627)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)
    at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961)
    at com.pegarules.generated.activity.ra_action_exceptionemail_9e810e4acfc3b19c181dfb17cbfb15ff.step9_circum0(ra_action_exceptionemail_9e810e4acfc3b19c181dfb17cbfb15ff.java:736)
    at com.pegarules.generated.activity.ra_action_exceptionemail_9e810e4acfc3b19c181dfb17cbfb15ff.perform(ra_action_exceptionemail_9e810e4acfc3b19c181dfb17cbfb15ff.java:228)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)
    at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961)
    at com.pegarules.generated.activity.ra_action_performexception_f377c2361418dca6095c3940f018a7ad.step1_circum0(ra_action_performexception_f377c2361418dca6095c3940f018a7ad.java:208)
    at com.pegarules.generated.activity.ra_action_performexception_f377c2361418dca6095c3940f018a7ad.perform(ra_action_performexception_f377c2361418dca6095c3940f018a7ad.java:72)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)
    at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961)
    at com.pegarules.generated.activity.ra_action_investigateevent_fe64afb73b864e5eeb2620056224f9ad.step3_circum0(ra_action_investigateevent_fe64afb73b864e5eeb2620056224f9ad.java:523)
    at com.pegarules.generated.activity.ra_action_investigateevent_fe64afb73b864e5eeb2620056224f9ad.perform(ra_action_investigateevent_fe64afb73b864e5eeb2620056224f9ad.java:106)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)
    at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961)
    at com.pegarules.generated.activity.ra_action_investigateevents_aff1de69a750c56bd5b65452b16e71f9.step2_1_circum0(ra_action_investigateevents_aff1de69a750c56bd5b65452b16e71f9.java:393)
    at com.pegarules.generated.activity.ra_action_investigateevents_aff1de69a750c56bd5b65452b16e71f9.step2_0_circum0(ra_action_investigateevents_aff1de69a750c56bd5b65452b16e71f9.java:342)
    at com.pegarules.generated.activity.ra_action_investigateevents_aff1de69a750c56bd5b65452b16e71f9.perform(ra_action_investigateevents_aff1de69a750c56bd5b65452b16e71f9.java:104)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)
    at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646)
    at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivities(ThreadRunner.java:572)
    at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivities(PRThreadImpl.java:482)
    at com.pega.pegarules.session.internal.async.agent.QueueProcessor.executeBatchTask(QueueProcessor.java:297)
    at com.pega.pegarules.session.internal.async.agent.QueueProcessor.execute(QueueProcessor.java:362)
    at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:1155)
    at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1371)
    at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1114)
    at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:995)
    at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:816)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.mailgun.org, port: 587, response: -1
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2088)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:699)
    at javax.mail.Service.connect(Service.java:366)
    at javax.mail.Service.connect(Service.java:246)
    at com.pega.platform.integrationcore.client.email.internal.javamail.JavaEmailClient.connectOutboundInternal(JavaEmailClient.java:295)
    at com.pega.platform.integrationcore.client.email.internal.javamail.JavaEmailClient.connectOutbound(JavaEmailClient.java:269)
    at com.pega.platform.integrationcore.client.email.internal.javamail.JavaEmailClient.connect(JavaEmailClient.java:254)
    ... 48 more
    ]

    Recommended next steps

    To resolve the email client exception issue, contact an SMTP subject matter expert to check the status of the email client and its configuration. If you do not have access to the email client and its configuration, contact the support team. If you are a Pega Cloud® Services client, contact Pega Support.

    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.