Method SMTPClient():setProgressBlock() Professional

Sets a code block for progress evaluation

Syntax
:setProgressBlock( <bProgress> ) --> lSuccess
Parameters
<bProgress>
The code block to be evaluated when sending e-mails.
Return

The method returns .T. (true) when the code block was successfully assigned, or .F. (false) in case of a failure.

Description

The code block passed to this method gets evaluated after data was sent to the SMTP server. Generally, the code block looks like this:

{|nSent, nTotal, oSelf| ShowProgress(nSent, nTotal, oSelf)} 

nSent is the number of bytes that have already been sent to the SMTP server. nTotal is the total size of the e-mail in bytes. The parameter oSelf is the object that is evaluating the code block.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.