The ImapClient ActiveX control enables
applications to access and organize email while retaining messages
on the server. Applications can retrieve complete messages,
headers, or selected message parts, allowing them to inspect
message information before downloading larger bodies or attachments.
Unlike the Post Office Protocol (POP3), which is primarily designed
to download messages from a server, IMAP provides facilities for
managing messages and mailboxes directly on the server. IMAP is
generally preferred when multiple applications or devices need to
access the same mailbox, since messages, folders, and status flags
are maintained centrally. POP3 may be a simpler choice for applications
that only need to retrieve incoming messages for local processing or
storage, without requiring server-side mailbox management.
Mailbox management methods allow applications to enumerate,
create, rename, delete, and subscribe to mailboxes. A mailbox can be
selected for normal read-write access or examined in read-only mode.
Applications can inspect mailbox status and message counts, copy
messages between mailboxes, and add messages to a server mailbox.
The control provides methods for searching a mailbox, enumerating
messages, and retrieving message identifiers, sizes, headers, and
status flags. Applications can identify new or unread messages, change
message flags, mark messages for deletion, restore messages that have
not yet been expunged, and expunge deleted messages. Methods that
expose mailbox and message unique identifiers help applications track
server-side content across updates.
For servers that support the IDLE extension, applications can
monitor the selected mailbox for notifications of new messages and
expunged messages instead of relying only on periodic polling. An
event receives status updates so the application can schedule any
additional retrieval or display work. Capability queries allow
applications to determine which features the connected server
advertises.
The control supports implicit TLS connections and explicit upgrades
using STARTTLS. Configurable timeouts, event notifications, transfer
statistics, and optional network tracing provide control over
communication and diagnostics. The control shares similar properties
and methods with the SocketTools PopClient control, and the
MailMessage control can be used to process retrieved MIME
content and attachments.
For authentication, the control supports traditional username and
password authentication using the LOGIN and PLAIN mechanisms, as well
as OAuth 2.0 authentication using the XOAUTH2 and OAUTHBEARER
mechanisms. OAuth 2.0 enables applications to authenticate with
mail services that require token-based authentication instead of
account passwords. Applications are responsible for obtaining
and refreshing access tokens using the authentication procedures
required by the mail service.
The SocketTools ActiveX Edition components are self-registering
controls that are compatible with any programming language that
supports the Component Object Model (COM) and the ActiveX control
specification. If you are using Visual Basic 6.0, Service Pack 6 (SP6)
is required. We recommend installing all available updates for your
development tools. Although the Visual Basic 6.0 runtime is supported
on Windows 11, the IDE itself is no longer officially supported by
Microsoft. Legacy IDEs and compilers may also require elevated
(administrator) privileges to run properly.
The ActiveX controls are supported on Windows 7, Windows Server
2008 R2, and later versions of both desktop and server editions of
Windows. For Windows 7, Service Pack 1 (SP1) is the minimum
requirement. For Windows 8 systems, the 8.1 update must be installed.
On ARM-based platforms, the minimum supported version is Windows 10
build 1709.
SocketTools includes components for both 32-bit (x86) and 64-bit
(x64) Windows platforms. All modern versions of Windows are 64-bit,
but we continue to include 32-bit components for compatibility with
legacy development tools such as Visual Basic 6.0. We also provide
native ARM64 ActiveX controls for systems running Windows on ARM. Note
that 32-bit applications on ARM run using x86 emulation, and Microsoft
no longer supports native ARM32 applications.
If you are using VBScript, Visual Basic for Applications (VBA), or
another scripting environment on an ARM-based system, be aware that
64-bit hosts will require ARM64 components, while 32-bit hosts will
use x86 components under emulation. This includes applications created
with Visual Basic 6.0. To reduce deployment complexity and avoid
confusion, SocketTools does not include ARM32 ActiveX controls in its
standard redistribution packages but they are available on request for
legacy or specialized scenarios.
When distributing an application which uses this control, you can
either install the OCX file as a shared component in the appropriate
system folder or in the same folder as your application executable. If
the control is installed in a shared system location, the installer
should manage it as a shared component to prevent other applications
from being affected when it is updated or removed. If you install the
control in the same folder as your executable, it is recommended that
you use registration-free activation or COM redirection to ensure that
the correct version of the control is loaded by the application.
This control has no external runtime dependencies beyond the
standard Windows system libraries. It does not require the Microsoft
Visual C++ Redistributable or any additional third-party libraries to
be installed. All required components are either provided by Windows
or statically linked into the ActiveX control, simplifying deployment
and eliminating the need to distribute additional runtime files.