Timeout Property


Specifies timeout value (the maximum amount of time to wait for response from the IMAP4 server before returning an error) in seconds.

Default is 30 sec.


Value Type: Long
Parameters: None 

Usage example:

Dim Mailer
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.IMAP4")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.IMAP4")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
Mailer.ServerName = "mailserver.com"
Mailer.UserName = "MyName"
Mailer.Password = "MyPassword"
Mailer.Timeout = 5 ' 5 seconds
If Mailer.Connect Then
  MsgBox "Connected successfully"
  Mailer.Disconnect
End If

See Also:

IMAP4 Object


Copyright © 2002-2022, AfterLogic Corporation. All rights reserved.