sendmail Abort method
Return to Introduction  Previous page  Next page
Applies to
acSendMail, acHTTP, acAutoUpgrader, acWebImage and acSQLQueryThread components.  

procedure Abort(HardTerminate: Boolean = True);  

The Abort method imediately terminates the thread which sends the data via SMTP protocol. After calling the Abort method, the OnAborted event occurs.  
The Abort method contains 1 optional parameter, HardTerminate (True by default), which controls whether the application should imediately terminate thread which sends data to SMTP server, or wait when server terminate connection itself.  

See also
Send method; OnAborted event.