26
Views
2
Comments
Connection Timeout when sending out a list of emails

I have an application that ends an email with an image to all the applicants which can go up to thousands. I'm currently testing to loop at 50 times for a small size testing. The 50 emails gets sent out without problem, however there will always be a connection timeout that follows, is there a way to resolve this? I have already set the application's server request timeout to 600 and used the HTTPRequest SetRequestTimeout to -1 for infinite timeout but to no avail. My worry is that if i need to update the database at the end of sending each email that if there is a connection timeout everything will rollback  

UserImage.jpg
Mohd Wasim Shaikh

Hi Clifford,

You can create a timer or a light weight BPT process which will run in the background for triggering emails. Create a timer in such a way that even if it gets timed out it should wake the timer. Your timer should look like the below snap (just for reference). Hope this helps you out.


2025-02-10 17-24-13
Arun Rajput

Hi Clifford,

As suggested in above solution you can use timer or BPT.

For commit the transaction after the getting timeout error or any error you can use in built action "CommitTrasaction"

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.