This property specifies the operation mode of current object.
If the value of asynchronous property is zero, ANSMTP object works in synchronous mode. If the value of property is 1, ANSMTP object works in asynchronous mode. In synchronous mode, all events won't be fired. The default value is zero.
It is more easier to develop application in synchronous mode. However, running in asynchronous mode could provide higher performance.
In synchronous mode, once SendMail method is called, it returns to application after the method is complete. Therefore, if the runtime is long, your application cannot do anything before this method ends, which results in lower efficiency. In contrast, in asynchronous mode, as SendMail method works in background, this methods return to application immediately no matter the running method is complete or not. The return value will pass to application via fired event.
To learn more about asynchronous operating mode, please refer to regarding events. You may also download ANSMTP in which many samples are embedded. Those samples demonstrate how to use asynchronous operating mode to raise your application's efficiency and flexibility.
See Also
SendMail Method
Terminate Method
ANSMTP Samples
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.