Send mail immediately

Giganews Newsgroups
Subject: Send mail immediately
Posted by:  Ste (…@no.com)
Date: Tue, 3 May 2005

Hi all,
I'm using this code from SendMail demo:
LSMTP.Connect();
        try {
          LSMTP.Send(LMsg);
          Status("Completed");
        }
        finally {
          LSMTP.Disconnect();
        }
I've observerd that the mail is really sent not at the end of the
"Send" method, but when SMTP client disconnect, through "Disconnect"
method. Is there any way to avoid this, and send really the e-mail at
the end of "Send" method, before disconnecting (or flush the unsent
mails...without disconnecting)?

Replies