IMAP – Search for Messages by Message-ID or any Email Header Field

Using the Chilkat IMAP API: To download emails having the exact contents of a header field, or all emails where a given header field contains a specified substring, use the Search method like this: (C++) CkMessageSet *mset = imap.Search(“HEADER Message-ID 48208D0C”,true); (C#) Chilkat.MessageSet mset = imap.Search(“HEADER Message-ID 48208D0C”,true); If the Search method returns a non-NULL message set object, then download […]

Saving an RSA key pair to a file

Question: I’m having trouble finding a good/complete VB.Net Chilkat example of how to generate an RSA key container with a key pair (private and public) and save that key container to a file. Answer: I think I can clarify.  With 2 points: 1) In actuality, an RSA private key also contains the public-part of the key.  It contains the all […]

Delete Files from a Zip Archive

Question: “I’ve been trying out the ZIP package that you guys have and for the most part it’s great. I do however have a question about folder manipulation. What I would like to be able to do is individually remove files from the zip and if the directory is empty I would like to remove the directory from the zip […]

Upload from ASP code to FTP Server

I get the following support problem about once per week from ASP developers: The ASP developer wants to upload a file from the client computer where the browser is running, to an FTP server.  He writes ASP code to do the FTP upload, but cannot understand why the file is not found.  The thing the ASP developer doesn’t realize is […]

IMAP “Not in the authenticated state” Error

The blog post explains the “Not in the authenticated state” error. ChilkatLog: SelectMailbox: DllDate: Feb 15 2010 UnlockPrefix: Anything for 30-day trial Username: NETWORK SERVICE Component: .NET 2.0 mailbox: Inbox Not in the authenticated state This error happens if the caller is either not connected to an IMAP server, or is connected but the Login method was never called or […]

Using 32-bit or 64-bit ActiveX Components on x64 Windows

64-bit Windows is capable of running applications in both 32-bit mode and 64-bit mode. If the application process is running in a 32-bit address space, the DLL must also use a 32-bit address space. (In other words, it should be a DLL compiled for the Win32 platform.) If the application process is running in a 64-bit address space, the DLL’s […]

Sending SMS Text Messages via Email-to-SMS Gateways

ASP: Send SMS Message SQL Server: Send SMS Message C#: Send SMS Message C++: Send SMS Message MFC: Send SMS Message C: Send SMS Message Delphi: Send SMS Message Visual FoxPro: Send SMS Message Java: Send SMS Message Perl: Send SMS Message PHP: Send SMS Message Python: Send SMS Message Ruby: Send SMS Message VB.NET: Send SMS Message Visual Basic: […]

Incorrect Format Error when trying to load .NET Assembly

This Chilkat blog post explains the following error: “Could not load file or assembly ‘ChilkatDotNet2, Version=9.0.8.0, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd’ or one of its dependencies. An attempt was made to load a program with an incorrect format.” When a DLL is loaded, it is mapped into the process’s address space. If the process is running in a 32-bit address space, the DLL […]

Getting Started with AES Decryption

This is a common question: You receive encrypted data and a key and want to decrypt. The person providing the encrypted data has provided little information, perhaps only that the encryption algorithm is AES. Where to do you begin, and what additional information, if any, do you need? Answer: AES encryption comes in 3 key sizes: 128-bit, 192-bit, and 256-bit. […]