| Product Features |
Download the ReadyPOP User
Manual
|
 |
ReadyPOP is a .Net library for retrieving email messages from a POP3
mailserver, checking mailbox status and parsing retrieved messages from Visual
Basic .Net, C# .Net, ASP .Net and other programming and scripting languages that
support the .Net framework.
|
 |
Easy to use - No need to understand the POP3 protocol.
|
 |
Access UIDL (unique message ID), message Date (automatically converted to
local time zone), From address, To address, CC address, Subject, Plain Text
Body, HTML Body all by name.
|
 |
Easily return a list of file attachments without having to first save them.
|
 |
Easily save all file attachments to the directory of your choice.
|
 |
Fully supports MIME, Base64 and Quoted Printable.
|
 |
Complete working ASP.net sample application that clearly demonstrates how to
use the ReadyPOP .Net component. |
|
| Object Reference
|
| POP3Client object |
| Top object in component hierarchy:
maintains connection to the mail server, retrieves mailbox statistics and list
of messages, retrieves and deletes messages. Example Usage: Dim pop3 As New POP3Client |
| Methods: |
object.Connect() Connects to the POP3 using the
values assigned to the Host, Port (uses 110 by default), User and Pass
properties. |
object.Delete(ByVal messageNumber As
Integer) Deletes the specified message. |
object.Disconnect() Closes the connection to the
POP3 server. |
object.Exec(ByVal cmd As String, Optional ByVal
Multiline As Boolean = False) Sends the specified command to the POP3
server. |
object.List(Optional ByVal messageNumber As Integer =
0) Sends the LIST command to the POP3 server, which returns the scan
listing. |
object.MessageCount() Returns the Message Count on
the POP3 server. |
object.Noop() Sends the NOOP command to the POP3
server. The POP3 server replies with a positive response (+OK).
|
object.Pass() Sends the Password property value to
the POP3 server for authentication. |
object.Quit() Terminates the POP3 session.
|
object.Retr(ByVal messageNumber As
Integer) Retrieves the specified message from the POP3 server.
|
object.Rset() If any messages have been marked as
deleted by the POP3 server, they are unmarked. |
object.Stat() Sends the STAT command to the POP3
server. The POP3 server issues a positive response with a line containing
information for the maildrop. This line is called a "drop listing" for that
maildrop. |
object.Top(ByVal messageNumber As Integer, ByVal
NumberOfLines as Integer) As String Sends the TOP command to the POP3
server. The POP3 server sends the headers of the message, the blank line
separating the headers from the body, and then the number of lines of the
indicated message's body. |
object.Uidl(Optional ByVal messageNumber As Integer =
0) As String Sends the UIDL command to the POP3 server. The POP3
server issues a positive response with a line containing information for that
message. This line is called a "unique-id listing" for that message.
|
object.User() Sends the User property value to the
POP3 server for authentication. |
| Properties |
object.Host As String Address of POP3 server to
connect to. |
object.MailboxSize As Integer Total size of the
messages in mailbox, in octets (bytes) (read-only). |
object.MessageCount as Integer Number of messages
in mailbox (read-only). |
object.Password As String User password for
authenticating to mailserver. |
object.Port As Integer POP3 server port number
(value is 110 by default). |
object.ServerState As POP3ServerState Returns the
state of the POP3 session (read-only). The 3 possible session states
are:
Authorization Transaction Disconnected
Example Usage:
If pop3.ServerState = POP3ServerState.Disconnected
Then Response.write("Couldn't connect to POP3 server.") End
If |
object.Username As String Username for
authenticating to mailserver. |
| Message object |
| Object containing parsed email message,
including header items and message body. Example usage: Dim
msg As New ReadyPOP3.Message(message) Where "message" is the string
returned by pop3.Retr() |
| Methods: |
object.GetHeader(ByVal hdr As String) As
Header Returns the specified header value. Referencing a non-existant header
will result in an error. Example usage: msg.GetHeader("Subject").Data |
|
| Properties: |
object.Attachments As ArrayList Returns an array
the messages file attachments as objects (read-only). Example usage:
For i = 0 to msg.Attachments.count-1
msg.Attachments(i).SaveAs(somepath & msg.Attachments(i).name)
Next |
object.Body as Body Returns the complete unparsed
body of the message (read-only). Example usage: BodyStr =
msg.Body.Data.ToString |
object.CC As String Returns the CC address from the
headers (read-only). |
object.DateSent As String Returns the data the
message was sent, automatically converted to the local timezone (read-only).
|
object.From As String Returns the message's From
address (read-only). |
object.HasAttachments As Boolean Returns a value of
True if the message has attachments, False if it does not (read-only).
|
object.HtmlBody As String Returns the HTML body of
the message (if present) (read-only). |
object.MessageID As String Returns the "Message-ID"
header value (read-only). |
object.PlainBody As String Returns the plain text
portion of the message body (read-only). |
object.SentTo As String Returns the address(es) the
message was sent to (read-only). |
object.Subject As String Returns the message's
subject (read-only). |
| System Requirements - top |
- Operating System
All
Windows operating systems that support the .Net framework.
- Software
The Microsoft
.Net framework 1.1 or higher must be installed on the machine that will be using the ReadyPOP
component.
- Installation
The ReadyPOP
component is installed by simlpy placing it in the bin directory of your
application and adding a reference to it within your code.
|