I am using System.Net.Mail for sending mail.
How do I force a SMTP Quit command (SMTP session termination) with the
SmtpClient class ?
Even when the SmtpClient object goes out of scope and I reinstantiate the
SmtpClient class the SMTP session appears to not be terminated. What causes
SMTP session start-up and shutdown with the System.Net.Mail SMTPClient class ?
Thanks
Hello,
IMHO, this is major implementation flaw in the current SMTPClient. The
SMTPClient uses the ServicePointManager internally to cache connections, so
it doesn't send a QUIT command. I don't know if one can gracefully close
such servicepoint instance.
Kind regards,
Henning Krause
>I am using System.Net.Mail for sending mail.
>
[quoted text clipped - 8 lines]
>
> Thanks
Philip - 17 Sep 2007 15:00 GMT
I need to be able to close the SMTP session and force a
reestablishment.....can you suggest an alternative ?.... another class
?....anything ?

Signature
Philip
> Hello,
>
[quoted text clipped - 18 lines]
> >
> > Thanks
Eugene Mayevski - 17 Sep 2007 15:15 GMT
Hello!
You wrote on Mon, 17 Sep 2007 07:00:02 -0700:
P> I need to be able to close the SMTP session and force a
P> reestablishment.....can you suggest an alternative ?.... another class
P> ?....anything ?
Check the SMTP client class in SecureBlackbox (see http://www.eldos.com/sbb/net-mime.php
for details)
With best regards,
Eugene Mayevski
http://www.SecureBlackbox.com - the comprehensive component suite for
network security