Question : How to improve the email performance in C#

I am sending  an email  to the my email account in programmetically using c#, but I am getting  the email after 2 mins. I am facing performance issue. i want to send an email to the user less than haif-minute. How to improve the performance?

Here My Code
------------------
MailMessage _message = new MailMessage();

 _message.From = new MailAddress("[email protected]");
  _message.To.Add(new MailAddress("[email protected]"));
 _message.Subject = "TEST1";
  _message.Body = "Congs!";

 SmtpClient _smtp = new SmtpClient(System.Configuration.ConfigurationSettings.AppSettings["SMTPHOST"]);
_smtp.Send(_message);

Answer : How to improve the email performance in C#

UI thread use the events that are created with CreateEvent API. These events (their handles) are known for the UI thread and the worker thread. UI thread raises the events by calling SetEvent. The working thread is always in a waiting mode - it contains a loop with WaitForMultipleObject inside - this function allows to wait for few events and if one these events gets the signaled state, this thread can perform an action.
If the working thread need to notify the UI thread, it sends a message to the main window of this thread.
 
Random Solutions  
 
programming4us programming4us