Question

Email sending process takes too long

Hi,

We are using SendSimpleEmail activity to notify users. But when the flow reaches that utility, it takes too long to process.(about 15-20 seconds) When I trace during the utility, it looks like that it wait at data corr email send step 8. What could be potential reason ?

Thanks.

***Edited by Moderator: Lochan to update platform capability tags***

Comments

Keep up to date on this post and subscribe to comments

September 4, 2019 - 1:01pm

Possible to attach the tracer log?  Are you sending large email or with large attachment?

Thanks.

September 5, 2019 - 4:57am
Response to WaikeiKwok_GCS

Hi,

There are just some info about the case in email body. Also there are no attachments. By the way I have discovered a parameter "BatchSend". When I set this to "true". Sending email process became faster. I suppose this parameter is used for queuing. Should I always use this parameter ?

Thanks.

September 5, 2019 - 6:55pm

It will be hard to recommend enabling BatchSend without knowing the root cause of slowness.  If connecting to the smtp server is slow, then enabling BatchSend will help as you need to connect once to send multiple emails.  

September 17, 2019 - 1:43am
Response to WaikeiKwok_GCS

Connection status of email accounts gets updated fastly on email accounts page. I don't think that connecting to smtp server is slow. It just waits on the email send java step. 

Pega
September 6, 2019 - 5:53am

Hi Engican,

Thanks for posting the query. Please refer the below link which might help for the email process that takes a long time.

https://community.pega.com/support/support-articles/email-listener-taking-long-time-process-emails

September 17, 2019 - 1:44am
Response to palas3

Thank you for your answer but my problem is not related to listeners.