Type | Description | |||
Host as Variant | A string expression that indicates the incoming mail server address. A POP3 server. You can use IP address or domain names as well: Samples: 193.226.40.161, mail.somewhere.com | |||
User as Variant | Specifies the user account. Some servers require the full email address as account, some not. Ask your ISP provider about your account name. Samples: useraccount, useraccount@somewere.com. The User property is used when control sends the USER command, a POP3 command. | |||
Pass as Variant | A string expression that indicates the POP3 command. See the RFC 1939 for the list of supported commands |
For instance, the following sample prints the messages, on the server mail.somewhere.com for the account: mike@somewhere.com ( or simple mike if the server accepts ) :
Dim WithEvents ibx As Inbox Private Sub Form_Load() Set ibx = New Inbox ibx.Read "mail.somewhere.com", "mike@somewhere.com", "password" End Sub Private Sub ibx_Read() Dim i As Long For i = 0 To ibx.Count - 1 With ibx(i) Debug.Print .Subject End With Next End Sub Private Sub ibx_Reading(ByVal Index As Long, Cancel As Boolean) With ibx(Index) Cancel = .Size > 10240 End With End Sub