I have the following portion of code on a Click Event on my page:
Dim ts As New ThreadStart(AddressOf SendEmails)
Dim t As New Thread(ts)
t.IsBackground = True
t.Start()
This actions the SendEmails
method which sends out 1000s of newsletter emails.
However, it seems this is timing out, as I've been able to log the following error:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
How can I increase the timeout amount to allow time to send 1000s of emails?