OnProgress Event

<< Click to Display Table of Contents >>

Navigation:  Reference > SmtpMail >

OnProgress Event

 

OnProgress event is fired during message transfer to notify application about sending progress.

 

Syntax

 

[Visual Basic]


Sub OnProgress(numMessageNumber As Long, numBytesSent As Long, numBytesTotal As Long)

 

[C#]


void OnProgress(int numMessageNumber, int numBytesSent, int numBytesTotal);

 

[C++]


void __cdecl OnProgress(LONG numMessageNumber, LONG numBytesSent, LONG numBytesTotal);

 

 

Parameters

 

numMessageNumber [in]

Message number returned from the SendAsync method.

 

numBytesSent [in]

Number of bytes transferred already.

 

numBytesTotal [in]

Total number of bytes in the message.

 

Return value

 

None.

 

Remarks

 

OnProgress is fired after block of data is transferred. In current version of AddEmail block size is 8 kilobytes. If the total number of bytes in the message is smaller than the block size, OnProgress event is not fired.