Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

April 12, 2007

Email not Sent Until Application Closes with Anti-Virus Program Running?

Question:
I hope you can help. I have a strange problem when sending an email from within a Delphi application using the Email ActiveX control.

I am using just the example program as is, and it actually can send an email. However, it only sends when I close the application. If I send more than one email, then they are queued up and all get sent when the application is closed. This is with email scanning turned on in my Anti-virus program (Norton). However, if I turn it off then the application works fine and the emails get sent immediately.

Answer:
This blog post http://www.chilkatsoft.com/p/p_176.asp discusses SMTP connections. The problem is that when sending email, the Chilkat component will keep the SMTP connection open so that subsequent calls to send mail can use the same SMTP connection. You can manually close the connection by calling mailman.CloseSmtpConnection (no arguments). The Chilkat mail-sending methods automatically open an SMTP connection if not already connected, so the next call to any mail-sending method will automatically re-establish the connection.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.