MailClient.GetMailCount Method


Retrieves total emails count on current selected folder from POP3/IMAP4/MS Exchange Server.

[Visual Basic 6.0]
Public Function GetMailCount( _
) As  Long
[Visual C++]
public: HRESULT GetMailCount(
LONG* pVal
);

Return Value

A integer value presenting the total emails count on current selected folder. This method only returns the total emails count without downloading other information. To retrieve emails from mail server, please use GetMailInfoList method.

See Also

User Authentication and SSL/TLS Connection
MailClient.Connect Method
MailClient.SelectFolder Method

Online Tutorials

Read Email over SSL/TLS Connection in Delphi - Tutorial
Read Email from Gmail Account in Delphi - Tutorial
Read Email from Yahoo Account in Delphi - Tutorial
Read Email from Hotmail Account in Delphi - Tutorial

Read Email over SSL/TLS Connection in VB6 - Tutorial
Read Email from Gmail Account in VB6 - Tutorial
Read Email from Yahoo Account in VB6 - Tutorial
Read Email from Hotmail Account in VB6 - Tutorial

Read Email over SSL/TLS Connection VC++ - Tutorial
Read Email from Gmail Account in VC++ - Tutorial
Read Email from Yahoo Account in VC++ - Tutorial
Read Email from Hotmail Account in VC++ - Tutorial