![]() |
![]() ![]() ![]() |
acThreadSafeLog component as subproperty of SendMail structure, acSendMail and acHTTP components.
|
property Threaded: Boolean; // False by default
|
The Threaded property used to choose between two working models of SendMail feature of acThreadSafeLog component.
|
|
Basically there is two possible working models:
|
1. | Threaded: when Threaded is True, the component creates new separate thread to produce and send email message to specified SMTP host. In this case the SendMail does not locks the application interface when it connects to the SMTP server and sends the message via Internet, and only produce events synchronized with main application thread (interface).
|
|
![]() |
Otherwise set Threaded to False and use non-threaded model to send any number of email messages simultaneously from any number of different threads.
|
|
2. | Non-threaded: when Threaded is False, the component does not creates any separate thread to produce and send email message. This model should be used only if your application uses many threads which could send email message using this component. This model should NOT be used in single-threaded application, since when you call the EmailLastRecords method, all your application interface will be locked while the component producing and sending the email message.
|
EmailLastRecords method.
|