smtp.Send() Issue

Posted by Kumar on Stack Overflow See other posts from Stack Overflow or by Kumar
Published on 2010-04-28T13:58:25Z Indexed on 2010/04/28 14:13 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

I building a web application in ASP.NET 3.5 and C#. I have a method in my project which sends emails to the users. But for some reason the smtp send method is taking 3 to 4 seconds to execute:

 SmtpClient smtp = new SmtpClient();
 smtp.Send(msg);-----> This is the line of code which takes 3 to 4 seconds to execute

What could be the reasons behind this delay?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#