I'm working on using threading for sending email notifications and I'm having some trouble. This code doesn't work for me and I can't figure out why. (I receive "email 1" and "email 3" but not "email 2". It also runs very slowly.)
Dim smtp As SmtpClient = New SmtpClient
Public Sub SendEmail()
smtp.Send("noreply@mysite.com", "me@mysite.com", "email 1", System.DateTime.Now)
ThreadIt_Thread()
smtp.Send("noreply@mysite.com", "me@mysite.com", "email 3", System.DateTime.Now)
Response.Write("done& ...
Go to the complete details ...