Connected Property

This property indicates if client has connected to the server.


Data Type: Boolean

Remarks

This property is read- only.

Usage Example

[Visual Basic]

'Connect POP3 server. 
Dim oPop3 As Object
Set oPop3 = CreateObject("ANPOP.POPMAIN")

Call oPop3.Connect( "pop3.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
'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.