Asynchronous Sending of Mail

May 6 2013 4:09 AM
Hi,

I'm getting a timeout error after 100 seconds when sending an email with 87 recipients on the CC list. Just want to ask if below code will send an email asynchronously or will the application thread waits for the response for the sending of email process. Thanks.

SmtpClient mailClient = new SmtpClient(Server, Port);

                Thread t = new Thread(delegate()
                {
                    try
                    {
                       
                        mailClient.Send(mail);
                    }
                    catch (Exception ex)
                    {
                        LogHelper.LogError(ex);
                    }
                });
                t.Start();

Answers (3)