Question

4
Replies
464
Views
Akash Member since 2017 12 posts
Vodafone
Posted: 2 years ago
Last activity: 2 years 5 months ago
Closed

Send EMail shape gives error when Email address is selected with correspondence type as Attach and Hold

Hi all,

I am using a Send Email shape to send an email to a particular email address. I am using the option 'Send to Email Address' for this.

I don''t want to actually send the mail, it should just get attached to the case. So in correspondence rule I have mentioned after create 'Attach and Hold'.

I have not configured any email account etc, as I dont want to send actual mail but just want to attach it to case.

When running the case, Pega tries to send actual mail and gives error as

Error sending email:
** Caught com.sun.mail.util.MailConnectException, Couldn't connect to host, port: XYZ.com, 25; timeout 60000

Complete logs

2018-04-09 07:15:00,965 [http-bio-9080-exec-2] [TABTHREAD7] [ ] [ OSC:01.01.01] (pega_integrationengine_default) ERROR 127.0.0.1|127.0.0.1 Administrator@XYZ.com - Unexpected exception caught while trying to send an email message.
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: XYZ.com, 25; timeout 60000;
nested exception is:
java.net.SocketTimeoutException: connect timed out
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2053)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697)
at javax.mail.Service.connect(Service.java:364)
at javax.mail.Service.connect(Service.java:245)
at com.pegarules.generated.SendEmailMessage_071019_N64HnJyGpowZnb6lXAmEwA.SendEmailMessage07_10_19(SendEmailMessage_071019_N64HnJyGpowZnb6lXAmEwA.java:309)
at com.pegarules.generated.SendEmailMessage_071019_N64HnJyGpowZnb6lXAmEwA.invoke(SendEmailMessage_071019_N64HnJyGpowZnb6lXAmEwA.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:9000)
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
at com.pegarules.generated.pega_integrationengine_default.SendEmailMessage(pega_integrationengine_default.java:166)
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:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_sendsimpleemail_47708275e297d09d05c12522d1d52d92.step13_circum0(ra_action_sendsimpleemail_47708275e297d09d05c12522d1d52d92.java:1214)
at com.pegarules.generated.activity.ra_action_sendsimpleemail_47708275e297d09d05c12522d1d52d92.perform(ra_action_sendsimpleemail_47708275e297d09d05c12522d1d52d92.java:294)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_pzsendemail_80e097effe50d5ee3f75da0336979fa6.step1_circum0(ra_action_pzsendemail_80e097effe50d5ee3f75da0336979fa6.java:198)
at com.pegarules.generated.activity.ra_action_pzsendemail_80e097effe50d5ee3f75da0336979fa6.perform(ra_action_pzsendemail_80e097effe50d5ee3f75da0336979fa6.java:69)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pegarules.generated.flow.ra_action_validatereamaining_e9d9cc0046675645bc11f62d1a5c9218.RunTaskActivity(ra_action_validatereamaining_e9d9cc0046675645bc11f62d1a5c9218.java:3483)
at com.pegarules.generated.flow.ra_action_validatereamaining_e9d9cc0046675645bc11f62d1a5c9218.Task_Utility3_circum0(ra_action_validatereamaining_e9d9cc0046675645bc11f62d1a5c9218.java:1174)
at com.pegarules.generated.flow.ra_action_validatereamaining_e9d9cc0046675645bc11f62d1a5c9218.perform(ra_action_validatereamaining_e9d9cc0046675645bc11f62d1a5c9218.java:593)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pegarules.generated.StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.StartFlow07_10_17(StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.java:167)
at com.pegarules.generated.StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.invoke(StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.java:76)
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:9000)
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
at com.pegarules.generated.pega_procom_flow.StartFlow(pega_procom_flow.java:639)
at com.pegarules.generated.pzStartStageFlow_071017___A9y_QebWyJOfhOz4kqSQ.pzStartStageFlow07_10_17(pzStartStageFlow_071017___A9y_QebWyJOfhOz4kqSQ.java:170)
at com.pegarules.generated.pzStartStageFlow_071017___A9y_QebWyJOfhOz4kqSQ.invoke(pzStartStageFlow_071017___A9y_QebWyJOfhOz4kqSQ.java:80)
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:9000)
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
at com.pegarules.generated.pega_processengine_workutilities.pzStartStageFlow(pega_processengine_workutilities.java:871)
at com.pegarules.generated.casetype.ra_action_pydefault_d298e8e98e2578cb2b8d32d6ff69baea.PRIM1_FLOW0_start_circum0(ra_action_pydefault_d298e8e98e2578cb2b8d32d6ff69baea.java:1203)
at com.pegarules.generated.casetype.ra_action_pydefault_d298e8e98e2578cb2b8d32d6ff69baea.PRIM1_start_circum0(ra_action_pydefault_d298e8e98e2578cb2b8d32d6ff69baea.java:1151)
at com.pegarules.generated.casetype.ra_action_pydefault_d298e8e98e2578cb2b8d32d6ff69baea.startStageProcesses_circum0(ra_action_pydefault_d298e8e98e2578cb2b8d32d6ff69baea.java:1133)
at com.pegarules.generated.casetype.ra_action_pydefault_d298e8e98e2578cb2b8d32d6ff69baea.doStagePurposes_circum0(ra_action_pydefault_d298e8e98e2578cb2b8d32d6ff69baea.java:684)
at com.pegarules.generated.casetype.ra_action_pydefault_d298e8e98e2578cb2b8d32d6ff69baea.perform(ra_action_pydefault_d298e8e98e2578cb2b8d32d6ff69baea.java:461)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pegarules.generated.pxCallCaseType_071017_HixV4k9UPa9eAjRWrWbcmw.pxCallCaseType07_10_17(pxCallCaseType_071017_HixV4k9UPa9eAjRWrWbcmw.java:123)
at com.pegarules.generated.pxCallCaseType_071017_HixV4k9UPa9eAjRWrWbcmw.invoke(pxCallCaseType_071017_HixV4k9UPa9eAjRWrWbcmw.java:82)
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:9000)
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
at com.pegarules.generated.pega_rules_utilities.pxCallCaseType(pega_rules_utilities.java:2354)
at com.pegarules.generated.activity.ra_action_pzstartstageprocesses_b63ac7e6047f0169eddeb2972852fcd4.step1_circum0(ra_action_pzstartstageprocesses_b63ac7e6047f0169eddeb2972852fcd4.java:187)
at com.pegarules.generated.activity.ra_action_pzstartstageprocesses_b63ac7e6047f0169eddeb2972852fcd4.perform(ra_action_pzstartstageprocesses_b63ac7e6047f0169eddeb2972852fcd4.java:69)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_pxchangestage_5d2d20f7cf6298299a8fc88d3a9c9897.step32_circum0(ra_action_pxchangestage_5d2d20f7cf6298299a8fc88d3a9c9897.java:2396)
at com.pegarules.generated.activity.ra_action_pxchangestage_5d2d20f7cf6298299a8fc88d3a9c9897.perform(ra_action_pxchangestage_5d2d20f7cf6298299a8fc88d3a9c9897.java:617)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_pzinitializestage_13d0f4fa57c3a8a93232171ac596a03e.step2_circum0(ra_action_pzinitializestage_13d0f4fa57c3a8a93232171ac596a03e.java:253)
at com.pegarules.generated.activity.ra_action_pzinitializestage_13d0f4fa57c3a8a93232171ac596a03e.perform(ra_action_pzinitializestage_13d0f4fa57c3a8a93232171ac596a03e.java:86)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pegarules.generated.flow.ra_action_pystartcase_4092936b56a20fe7f5fcade101b73813.RunTaskActivity(ra_action_pystartcase_4092936b56a20fe7f5fcade101b73813.java:1830)
at com.pegarules.generated.flow.ra_action_pystartcase_4092936b56a20fe7f5fcade101b73813.Task_Utility1_circum0(ra_action_pystartcase_4092936b56a20fe7f5fcade101b73813.java:968)
at com.pegarules.generated.flow.ra_action_pystartcase_4092936b56a20fe7f5fcade101b73813.perform(ra_action_pystartcase_4092936b56a20fe7f5fcade101b73813.java:580)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pegarules.generated.StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.StartFlow07_10_17(StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.java:167)
at com.pegarules.generated.StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.invoke(StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.java:76)
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:9000)
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
at com.pegarules.generated.pega_procom_flow.StartFlow(pega_procom_flow.java:639)
at com.pegarules.generated.activity.ra_action_savenew_8c0a3037ffdbc736529d02e75869693c.step4_circum0(ra_action_savenew_8c0a3037ffdbc736529d02e75869693c.java:525)
at com.pegarules.generated.activity.ra_action_savenew_8c0a3037ffdbc736529d02e75869693c.perform(ra_action_savenew_8c0a3037ffdbc736529d02e75869693c.java:120)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_savenew_7c3fbfe70c4a7f93bd614b041acfcba4.step6_circum0(ra_action_savenew_7c3fbfe70c4a7f93bd614b041acfcba4.java:536)
at com.pegarules.generated.activity.ra_action_savenew_7c3fbfe70c4a7f93bd614b041acfcba4.perform(ra_action_savenew_7c3fbfe70c4a7f93bd614b041acfcba4.java:168)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_addwork_22e2a7ec656f017db8e5505c26fbc32e.step15_circum0(ra_action_addwork_22e2a7ec656f017db8e5505c26fbc32e.java:1330)
at com.pegarules.generated.activity.ra_action_addwork_22e2a7ec656f017db8e5505c26fbc32e.perform(ra_action_addwork_22e2a7ec656f017db8e5505c26fbc32e.java:312)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_add_5fa4be2f584be40d9e1b50cf1962a8d8.step4_circum0(ra_action_add_5fa4be2f584be40d9e1b50cf1962a8d8.java:631)
at com.pegarules.generated.activity.ra_action_add_5fa4be2f584be40d9e1b50cf1962a8d8.perform(ra_action_add_5fa4be2f584be40d9e1b50cf1962a8d8.java:123)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_new_b411432bd3c2f0b0ce0fc0c588fdeed2.step12_circum0(ra_action_new_b411432bd3c2f0b0ce0fc0c588fdeed2.java:952)
at com.pegarules.generated.activity.ra_action_new_b411432bd3c2f0b0ce0fc0c588fdeed2.perform(ra_action_new_b411432bd3c2f0b0ce0fc0c588fdeed2.java:282)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_newfromflow_838fac44620b779a8daabe24d278fa22.step5_circum0(ra_action_newfromflow_838fac44620b779a8daabe24d278fa22.java:481)
at com.pegarules.generated.activity.ra_action_newfromflow_838fac44620b779a8daabe24d278fa22.perform(ra_action_newfromflow_838fac44620b779a8daabe24d278fa22.java:144)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pegarules.generated.activity.ra_action_douiaction_e7228a040c3bf89efe31545c6149a3d4.step24_circum0(ra_action_douiaction_e7228a040c3bf89efe31545c6149a3d4.java:2493)
at com.pegarules.generated.activity.ra_action_douiaction_e7228a040c3bf89efe31545c6149a3d4.perform(ra_action_douiaction_e7228a040c3bf89efe31545c6149a3d4.java:458)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:461)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3358)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:385)
at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1270)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1008)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:841)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:331)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:852)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:315)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:263)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:240)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:278)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223)
at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:574)
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:374)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:223)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:272)
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:121)
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:310)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:236)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2019)
Case Management
Moderation Team has archived post
Share this page LinkedIn