Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2007

Tip: Looking for answers? Try searching our database.

System.Net.Mail SmtpClient SMTP Quit Command

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Philip - 14 Sep 2007 18:36 GMT
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

Signature

Philip

Henning Krause [MVP - Exchange] - 17 Sep 2007 09:31 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.