Description
Occurs when an email is sent by SendAsync. If there is an error from SendAsync, this event gets the error number and error text.
Syntax
OnSendFinished(long handle, integer errornumber, string errortext)
Event ID
Arguments
Argument |
Description |
---|---|
handle |
The return handle of the SendAsync function. |
errornumber |
The return error number. Returns 1 if sending email succeeds and one of these negative numbers if it fails.
|
errortext |
The return error text. Returns null if sending email succeeds and one of the error texts if it fails. |
Examples
The following example outputs the error message when failed to send the email asynchronously.
IF ErrorNumber <> 1 THEN wf_log( 'Failed to send the E-Mail. Handle = ' + String(Handle) + ', ErrorNumber = ' + String(ErrorNumber) + ", ErrorText = " + ErrorText + ".") ) END IF
Return Values
None.