Chilkat HOME Android™ Classic ASP C C++ C# Mono C# .NET Core C# C# UWP/WinRT DataFlex Delphi ActiveX Delphi DLL Visual FoxPro Java Lianja MFC Objective-C Perl PHP ActiveX PHP Extension PowerBuilder PowerShell PureBasic CkPython Chilkat2-Python Ruby SQL Server Swift 2 Swift 3/4 Tcl Unicode C Unicode C++ Visual Basic 6.0 VB.NET VB.NET UWP/WinRT VBScript Xojo Plugin Node.js Excel Go
(C) Number of Messages in a POP3 MailboxGet the number of messages in a POP3 mailbox.
#include <C_CkMailMan.h> void ChilkatSample(void) { HCkMailMan mailman; int numMessages; // This example assumes the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. // The mailman object is used for receiving (POP3) // and sending (SMTP) email. mailman = CkMailMan_Create(); // Set the POP3 server's hostname CkMailMan_putMailHost(mailman,"pop.someMailServer.com"); // Set the POP3 login/password. CkMailMan_putPopUsername(mailman,"myLogin"); CkMailMan_putPopPassword(mailman,"****"); // Get the number of messages in the mailbox. numMessages = CkMailMan_GetMailboxCount(mailman); printf("%d\n",numMessages); CkMailMan_Dispose(mailman); } |
© 2000-2019 Chilkat Software, Inc. All Rights Reserved.