Avatar of Larry Brister
Larry Brister
Flag for United States of America

asked on 

.Net void multi-threading

I have a winforms app I inherited

In effect it opens with a task scheduler
Runs a sub (void) and closes

The SendMail void effectively sends 10,000 emails from a list it gets in SQL Server and send on to a providers smtp

That Provider allows 10,000 in a send....
But there can be multiple sends going on at the same time.

Is there a way to run the SendMail void in 5 separate "threads" so that 50k are being sent?

        SendMail(IsLive)
        Me.Close()
C#.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
Éric Moreau

8/22/2022 - Mon