The Cancel method cancels the current operation,
returning control to the application. This method is typically used
to either cancel the retrieval of a message from the mail server,
or the delivery of a message. Once the operation has been canceled,
the OnCancel event will fire.
This method will return value of zero if the action was
successful. Otherwise, a non-zero error code is returned which
indicates the cause of the failure.