MailClient.OnSendCommand Event


Occurs when the client has sent a command to the mail server.

[Visual Basic 6.0]
Public Sub Object_OnSendCommand( _
    ByVal sender As Object, _
    ByVal data As Variant, _
    ByVal dataStream As Boolean, _
    ByRef cancel As Boolean _
)
[Visual C++]
public: HRESULT OnSendCommandEventHandler( 
     IDispatch* sender, 
     VARIANT data,
     VARIANT_BOOL dataStream,
     VARIANT_BOOL* cancel 
);

Event Data

sender
The source (MailClient instance) of the event.
data
An array of type Byte that stores the sent data.
dataStream
Gets a value indicating whether the sent data is the email content.
cancel
Gets or sets a value indicating whether the task should be canceled.

Remarks

If cancel parameter is set to true in the event, the client terminates the connection immediately and a ERROR_CANCELLED exception will be thrown.

Example

To get the full samples of EAGetMail, please refer to Samples section.

Online Tutorials

Retrieve Email with Event Handler in VB6 - Tutorial
Retrieve Email with Event Handler in Delphi - Tutorial
Retrieve Email with Event Handler in VC++- Tutorial