Break ()
Cancels current operation. This method can be used to
break the connection if the e-mail server is not responding in a given
amount of time.
Delete
(MailNumber As Integer) As Boolean
Deletes a specified e-mail at the POP3 server. The
MailNumber parameter specifies which
e-mail that should be deleted. The first e-mail has the value 1, the
second e-mail has the value 2 etc. The e-mails are physically removed
from the server when the Disconnect
method is called. The method returns True if successful,
or False
if an error occurs.
GetLastError
() As Long
Returns an error code for the last error that occurred
in the control. A list of error codes is
available here.
GetLastReplyCode
() As Long
Returns the last reply code from the POP3 server. Is
always one of the following values: 1 = OK, 0 = error
or 2 = can't determine.
GetMailHeader
(MailNumber As Integer) As Boolean
Downloads an e-mail message header. The
MailNumber parameter specifies the
e-mail which header should be downloaded. The first e-mail has the value
1, the second e-mail has the value 2 etc. When an e-mail header has
arrived, the MailHeaderReceived event
is fired. You can then obtain the e-mail header by reading the
MailHeader property. Some fields in
the e-mail header can be obtained by reading the
MailFrom, MailReplyTo
and MailSubject properties. The method
returns True if successful, or False
if an error occurs.
GetMailSize
(MailNumber As Integer) As Boolean
Returns the size of a specified e-mail in the POP3 server.
The MailNumber parameter specifies
the number of the e-mail to examine. The first e-mail has the value
1, the second e-mail has the value 2 etc. When the size have arrived
from the server to the client computer, the
MailSizeReceived event is fired. The
method returns True if successful, or False
if an error occurs.
GetNumWaitingMails
() As Integer
Returns the number of waiting e-mails in the POP3 server.
GetSizeWaitingMails
() As Integer
Returns the total size in bytes of the waiting e-mails
in the POP3 server.
ReceiveMail
(MailNumber As Integer) As Boolean
Downloads an e-mail from the POP3 server. The
MailNumber parameter specifies which
e-mail that should be downloaded. The number of the first e-mail is
1. When an e-mail have been downloaded, the
MailReceived event is fired. After
a successful download, the e-mail body can be obtained by reading
the MailBody property. The subject
can be obtained by reading the MailSubject
property. Other properties that can be used to get information
about the downloaded e-mail is MailFrom
and MailReplyTo.
This method do not delete the e-mail from the mail server. You must
call the Delete method to remove the
e-mail. The method returns True if successful, or False
if an error occurs.
|