Version: 2.0.7
Add SSL authentication and encryption to ensure your data stays private as it travels across the public network.

SecurePop ActiveX Control

Use the SecurePop control to automatically authenticate and encrypt/decrypt all data sent and received over a POP3 connection using SSL2, SSL3, PCT, and TLS. Features include:

  • Use SSL 2.0, SSL 3.0, PCT, TLS or unencrypted TCP communications.
  • Customize certificate acceptance or rejection.
  • Client authentication fully supported.
  • Detailed knowledge of POP3 is not required.
  • Message object collection represents all messages on the server. Retrieve a single message, all messages, or a range of messages.
  • Retrieve entire messages, message headers only, or the specified amount of message lines.
  • Memory-based message retrieval makes this product perfect for ASP applications.
  • Powerful default operations are provided with the SecurePop control, including iteration through a message set to populate the Messages property.
  • The Message object provides an object representation of any e-mail message. This formatting object supports easy manipulation of simple and complex (even nested) MIME messages.

Looking for the .NET version of this control?

Development Environments

  • Visual Studio .NET (.NET Framework)
  • Visual Basic (VB)
  • Visual C++ (VC++)
  • FoxPro
  • PowerBuilder
  • Delphi
  • C++ Builder
  • ASP
  • Office 97/2000

Interface

Public Properties
AttachmentDirectory Decoded message attachments are created in this directory.
Certificate Certificate Object to use when authenticating to the remote host.
Count Returns the number of messages on the server.
Messages Collection of Message Objects that is the default destination for downloaded messages when using Get.
Preview Number of lines of message body desired when using Get with msgPreview specified as a parameter.
Protocol Specifies the security protocol used.
State Provides status information to the user interface. The State event fires to signal that this property has changed.
Timeout Controls the blocking behavior of methods that can be used in blocking and non-blocking ways.
Public Methods
Abort Abort any blocking method and release all system resources.
About Show the About Box.
Command Send any protocol command to the server.
Delete Mark one or more messages for removal upon normal completion of the session.
Get Get all or part of one or more messages.
Login Connect to a POP3 server and authenticate in one easy step.
Logout End a session.
Reset Remove the "mark-for-delete" flag from all messages on the server.
Trace Start or stop the accumulation of trace or debug data. Once started, this method accumulates data until it is turned off.
Authenticate Fires when the remote host has sent a certificate to be authenticated.
Certificate Fires when the remote host is requesting a certificate and the Certificate property is not set to a valid Certificate Object.
Error Fires when an error condition occurs.
Progress Fires when a method has completed, the server has sent a reply, or progress information is available.
State Fires when the State property changes.

Code Example

How easy is the SecurePop control to use? This example demonstrates creating a basic secure POP mail client.

Private Sub SecurePopTest()
    ' Login to the secure POP server. The control will attempt
    ' to negotiate SSL
    SecurePop1.Login "myserver", "username", "pass"

    ' Success! SSL connection established. Get any messages
    SecurePop1.Get msgContent
    Debug.Print SecurePop1.Messages.Count & " messages retrieved."

    ' Logout
    SecurePop1.Logout
End Sub

Private Sub SecurePop1_Authenticate(ByVal RemoteCertificate As DartSecureMailCtl.ICertificate, 
ByVal TrustedRoot As Boolean, ByVal ValidDate As Boolean, ByVal ValidSignature As Boolean, 
Valid As Boolean)
    ' The server's certificate has been received.
     Dim Msg As String
    ' Check to see if it passed all the checks.
    If Not Valid Then
        ' It didn't, so check everything and give the user the option to accept/reject.
        If Not ValidDate Then Msg = Msg + "- Certificate date is invalid" + vbCrLf
        If Not TrustedRoot Then Msg = Msg + "- Certificate Authority is not trusted"
        + vbCrLf
        If Not ValidSignature Then Msg = Msg + "- Certificate does not contain a valid 
        signature" + vbCrLf
        Msg = "The following conditions are true:" + vbCrLf + vbCrLf + Msg + vbCrLf 
        + vbCrLf
        Msg = Msg + "Do you still wish to authenticate?"
        If MsgBox(Msg, vbYesNo + vbExclamation, "Security Alert") = vbYes Then
            ' User still wants to accept so accept it (by setting Valid to true)
            Valid = True
         End If
     End If
End Sub