KeepConnection property


This property specifies whether Mail object disconnects to server after sending an email.

Data Type: Long

Remarks

If the value of KeepConnection property is zero, Mail object disconnects to server after sending an email; otherwise Mail object keeps the connection to SMTP server to standby. The default value is zero.

This is for sending multiple emails with one SMTP session. But to obtain higher performance in sending email, you can use FastSender object.

See Also

SendMail Method
Terminate Method