Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
IMAP NOOP CommandDemonstrates how to send an IMAP NOOP command using SendRawCommand.
#include <C_CkImap.h> void ChilkatSample(void) { HCkImap imap; BOOL success; const char * response; imap = CkImap_Create(); // Anything unlocks the component and begins a fully-functional 30-day trial. success = CkImap_UnlockComponent(imap,"Anything for 30-day trial"); if (success != TRUE) { printf("%s\n",CkImap_lastErrorText(imap)); return; } // Connect to an IMAP server. success = CkImap_Connect(imap,"mail.chilkatsoft.com"); if (success != TRUE) { printf("%s\n",CkImap_lastErrorText(imap)); return; } // Login success = CkImap_Login(imap,"****","****"); if (success != TRUE) { printf("%s\n",CkImap_lastErrorText(imap)); return; } // Send a NOOP command response = CkImap_sendRawCommand(imap,"NOOP"); printf("%s\n",response); // Disconnect from the IMAP server. CkImap_Disconnect(imap); CkImap_Dispose(imap); } |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.