code_junkie

Does system.net.mail.smptclient disconnect from the server?

Nov 12th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. var smtp = new SmtpClient();
  2. smtp.ServicePoint.MaxIdleTime = 1;
  3. smtp.ServicePoint.ConnectionLimit = 1;
  4. smtp.Send(message);
Add Comment
Please, Sign In to add comment