Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
4.33/5 (2 votes)
See more:
I have a very simple code for sending email to users.
It colleccts an array of emai addresses of users and sends an email to each email id.
It works fine when there are less than 250 email ids selected from database.
If in any process, the number of emails to be sent is high, i get the error that operation is timed out.
What can i do to increase to time of processing?
Thanks for your help.
Posted

I am guessing that you are generating and sending bulk email from a web page.

I suggest that your web page should insert the email requests into a database table (the queue) and that you should have a back end process (a scheduled task or a service) that reads the database queue and sends the email messages.
 
Share this answer
 
Try to divide the amount of emails to send at the same time (try to do so in more than one thread).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900