Language : C#
Database : Sqlserver.
I have created a simple migration tool for migrating from one mailbox to another. I have created a database for storing the email data. My code can smoothly send small numbers of emails without a problem..The application hangs whenever I try to send large numbers of emails. What method can I use to prevent this ? I have no idea whatsoever. I am having big performance impact in my application. I know my internet is slow and machine is not powerful enough as well. I have to feed the server baby slowly so it won't choked up. I can think of two solutions, however I have not tried them yet.
1. Sending emails in batches.
2. Using threads to let the application breathe for sometime.
I need your expert advice.
I can think my problem is language independent and
Java programmers can also help me in this regard.
best regards,