sendmail WaitTimeout property
Return to Introduction  Previous page  Next page
Applies to
acSendMail, acHTTP, acThread and acSQLQueryThread components.  

Declaration
property WaitTimeout: Integer;  

Description
The WaitTimeout property specifies the time interval (limit), in milliseconds unit, which application able to wait while the mail will be sent.  
 
For example, if the maximum time which you can allow to send an email is 5 seconds, set this value to 5000 (milliseconds). If application can wait infinitely, set WaitTimeout to 0.  
 
iiinfo When the timeout is expired, the component automatically terminates the process of sending an email. To be notified when the WaitTimeout is expired — write OnWaitTimeoutExpired event handler.  

Notes
The WaitTimeout only works together with WaitThread property, only when it set to True.  

See also
WaitThread, Threaded, ThreadPriority and Suspended properties;  
Send and Abort methods;  
OnWaitTimeoutExpired event.