PowerTCP Mail for ActiveX

from $499.00
Available Platforms

PowerTCP Mail for ActiveX Features

Pop ActiveX Control

The Pop control downloads Internet email messages from any POP3 server. Features include:

  • Explicit and Implicit SSL Security.
  • 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 a specified number of message lines.
  • Memory-based message retrieval makes this product perfect for ASP applications.
  • Powerful default operations are provided, 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.
  • Complies with RFC 1939, "Post Office Protocol - Version 3"
  • Detailed knowledge of POP3 is not required.



Public Properties
AttachmentDirectory Decoded message attachments are created in this directory.
AttachmentOverwrite Specifies whether decoded message attachments are overwritten if the filename is the same.
Blocked A True value indicates the control is currently executing a blocking method (Timeout is greater than 0), which has neither completed nor timed out with a ptTimeout error.
Certificate Client certificate.
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.
Privacy Security mode, such as Explicit, Implicit, None.
Security For handling server certificates.
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.
ClearCertificate Clear the client certificate.
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.
Public Events
Authenticate Presents the server certificate.
Certificate Client certificate requested.
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 POP Control to use? Check out the VB example below which demonstrates how to retrieve all message headers from a POP server and displays data about each header.


Pop1.Timeout = 30000

' Login to the server
Pop1.Login "mail.test.com", "testuser", "testpassword"

' Only get the header of the messages
Pop1.Preview = 0

' Get all message headers
Pop1.Get msgPreview

' Iterate through the messages and display data
Dim msg As Message
For Each msg In Pop1.Messages
MsgBox "From: " & msg.From & " Subject: " & msg.Subject

' Logout