Description
Cancels the email to be sent asynchronously in the mailing list.
Applies to
Syntax
smtpclient.SendAsyncCancel({long handle})
Argument |
Description |
---|---|
smtpclient |
A SMTP client object identifying the client in which you want to cancel the email to be sent asynchronously in the mailing list by the specified handle. |
handle (optional) |
A long used to identify the email to be sent asynchronously in the mailing list. It is the return value of the SendAsync function. The default value is 0. |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs.
Examples
The following example cancels all the emails to be sent asynchronously in the mailing list.
inv_SmtpClient.SendAsyncCancel(0)
The following example cancels the email to be sent asynchronously in the mailing list by handle 3.
inv_SmtpClient.SendAsyncCancel(3)
See also