IMAP4Connection Property

This property indicates if the remote server is a IMAP4 server.


Data Type: Long

Remarks

If the value of this property is greater than zero, then ANPOP uses IMAP4 protocol to connect server; if the value is zero(default), ANPOP uses POP3 protocol to connect the server.

Usage Example

[Visual Basic]

'Connect IMAP4 Server.
Dim oPop3 As Object
Set oPop3 = CreateObject("ANPOP.POPMAIN")

oPop3.IMAP4Connection = 1
oPop3.ServerPort = 143
Call oPop3.Connect( "imap4.email.com", "John", "John123" )
Dim bOk As Boolean
bOk = oPop3.Connected  
 
If bOk Then 
  MsgBox "Connecting server succeeds."
Else
  MsgBox "Connecting server fails."
End If

See Also

Connect Method


2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.